You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.xml 5.6 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <?xml version="1.0"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <document>
  17. <properties>
  18. <index value="1"/>
  19. <title>Apache .NET Ant Library</title>
  20. </properties>
  21. <body>
  22. <section name="Apache .NET Ant Library&amp;#x2122;">
  23. <p>The Apache .NET Antlib provides tasks that support
  24. development of .NET software with Apache Ant.</p>
  25. </section>
  26. <section name="Apache .NET Ant Library 1.0">
  27. <h3>November 6, 2006 - Apache .NET Ant Library 1.0
  28. Available</h3>
  29. <p>Apache .NET Ant Library 1.0 is now available for
  30. download as <a
  31. href="http://ant.apache.org/antlibs/bindownload.cgi">binary</a>
  32. or <a
  33. href="http://ant.apache.org/antlibs/srcdownload.cgi">source</a>
  34. release.</p>
  35. </section>
  36. <section name="Idea">
  37. <p>This library doesn't strive to replace NAnt or MSBuild, its
  38. main purpose is to help those of us who work on projects
  39. crossing platform boundaries. With this library you can use Ant
  40. to build and test the Java as well as the .NET parts of your
  41. project.</p>
  42. <p>This library provides a special version of the
  43. <code>&lt;exec&gt;</code> task tailored to run .NET executables.
  44. On Windows it will assume the Microsoft framework is around and
  45. run the executable directly, while it will invoke Mono on any
  46. other platform. Of course you can override these
  47. assumptions.</p>
  48. <p>Based on this a few tasks to run well known .NET utilities
  49. from within Ant are provided, namely tasks to run <a
  50. href="http://www.nunit.org/">NUnit</a>, <a
  51. href="http://nant.sf.net/">NAnt</a>, <a
  52. href="http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=27&amp;SiteID=1">MSBuild</a>
  53. and the <a href="http://wix.sf.net/">Wix</a> toolkit.</p>
  54. <p>The initial .NET tasks of Ant (compiler tasks for C#, J# and VB.NET
  55. for example) have also been moved to this Antlib and will see further
  56. development here.</p>
  57. </section>
  58. <section name="Tasks">
  59. <subsection name="dotnetexec">
  60. <p>Runs a .NET executable.</p>
  61. </subsection>
  62. <subsection name="nunit">
  63. <p>Runs NUnit tests.</p>
  64. </subsection>
  65. <subsection name="nant">
  66. <p>Invokes NAnt, either on an external file or a build file
  67. snippet contained inside your Ant build file.</p>
  68. </subsection>
  69. <subsection name="msbuild">
  70. <p>Invokes MSBuild, either on an external file or a build file
  71. snippet contained inside your Ant build file.</p>
  72. </subsection>
  73. <subsection name="wix">
  74. <p>Invokes the candle and light executables of the WiX toolkit
  75. in order to create MSI installers from within Ant.</p>
  76. </subsection>
  77. </section>
  78. <section name="Examples">
  79. <subsection name="nant">
  80. <source><![CDATA[
  81. <project xmlns:dn="antlib:org.apache.ant.dotnet">
  82. <dn:nant>
  83. <build>
  84. <echo message="Hello world"/>
  85. </build>
  86. </dn:nant>
  87. </project>
  88. ]]></source>
  89. <p>runs NAnt on the embedded <code>&lt;echo&gt;</code>
  90. task, output looks like</p>
  91. <source><![CDATA[
  92. Buildfile: test.xml
  93. [dn:nant] NAnt 0.85 (Build 0.85.1932.0; rc3; 16.04.2005)
  94. [dn:nant] Copyright (C) 2001-2005 Gerry Shaw
  95. [dn:nant] http://nant.sourceforge.net
  96. [dn:nant]
  97. [dn:nant] Buildfile: file:///c:/DOKUME~1/STEFAN~1.BOD/LOKALE~1/Temp/build1058451555.xml
  98. [dn:nant] Target framework: Microsoft .NET Framework 1.1
  99. [dn:nant]
  100. [dn:nant] [echo] Hello world
  101. [dn:nant]
  102. [dn:nant] BUILD SUCCEEDED
  103. [dn:nant]
  104. [dn:nant] Total time: 0.2 seconds.
  105. BUILD SUCCESSFUL
  106. Total time: 2 seconds]]></source>
  107. </subsection>
  108. <subsection name="msbuild">
  109. <source><![CDATA[
  110. <project xmlns:dn="antlib:org.apache.ant.dotnet">
  111. <dn:msbuild>
  112. <build>
  113. <Message Text="Hello world"
  114. xmlns="http://schemas.microsoft.com/developer/msbuild/2003"/>
  115. </build>
  116. </dn:msbuild>
  117. </project>]]></source>
  118. <p>runs MSBuild on the embedded <code>&lt;Message&gt;</code>
  119. task, output looks like</p>
  120. <source><![CDATA[
  121. Buildfile: test.xml
  122. [dn:msbuild] Microsoft (R) Build Engine Version 2.0.50727.42
  123. [dn:msbuild] [Microsoft .NET Framework, Version 2.0.50727.42]
  124. [dn:msbuild] Copyright (C) Microsoft Corporation 2005. All rights reserved.
  125. [dn:msbuild] Build started 15.12.2005 20:21:56.
  126. [dn:msbuild] __________________________________________________
  127. [dn:msbuild] Project "c:\Dokumente und Einstellungen\stefan.bodewig\Lokale Einstellungen\Temp\build1543310185.xml" (default targets):
  128. [dn:msbuild] Target generated-by-ant:
  129. [dn:msbuild] Hello world
  130. [dn:msbuild] Build succeeded.
  131. [dn:msbuild] 0 Warning(s)
  132. [dn:msbuild] 0 Error(s)
  133. [dn:msbuild] Time Elapsed 00:00:00.10
  134. BUILD SUCCESSFUL
  135. Total time: 0 seconds
  136. ]]></source>
  137. </subsection>
  138. </section>
  139. </body>
  140. </document>