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.html 4.8 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us"></meta>
  4. <title>Dotnet Ant Library</title>
  5. </head>
  6. <body>
  7. <h2>Introduction</h2>
  8. <p>This is a library of Ant tasks that support using .NET
  9. executables accross different platforms and in particular support
  10. using common .NET development tools like <a
  11. href="http://nant.sourceforge.net/">NAnt</a> or <a
  12. href="http://www.nunit.org/">NUnit</a> from within Ant.</p>
  13. <h2>Requirements</h2>
  14. <p>The current version requires Ant 1.6.2 or later and may even
  15. work better for a CVS build of Ant created from CVS HEAD.</p>
  16. <h2>Where is it?</h2>
  17. <p>The source code for the library currently lives in the
  18. developer sandbox in Ant's CVS - <a
  19. href="http://cvs.apache.org/viewcvs.cgi/ant/proposal/sandbox/dotnet/">http://cvs.apache.org/viewcvs.cgi/ant/proposal/sandbox/dotnet/</a>.
  20. A binary can be found at <a
  21. href="http://cvs.apache.org/~bodewig/dotnet/dotnet.jar">http://cvs.apache.org/~bodewig/dotnet/dotnet.jar</a>.
  22. A zip file containing the docs is also <a
  23. href="http://cvs.apache.org/~bodewig/dotnet/docs.zip">available</a>.</p>
  24. <p>Note that these are temporary locations and may change later.</p>
  25. <h2>Feedback</h2>
  26. <p>Right now direct any feedback either directly to <a
  27. href="mailto:bodewig@apache.org">me</a> or the <a
  28. href="http://ant.apache.org/mail.html#Developer List">Ant
  29. developer list</a>.
  30. <h2>Installation</h2>
  31. <p>If you are building this from sources, run the antlib target
  32. and you'll get a file <code>dotnet.jar</code>. If you've
  33. downloaded <code>dotnet.jar</code>, you are already ready.</p>
  34. <p>There are several ways to use the tasks:</p>
  35. <ul>
  36. <li>The traditional way:
  37. <pre>
  38. &lt;taskdef
  39. resource="org/apache/tools/ant/taskdefs/optional/dotnet/antlib.xml"&gt;
  40. &lt;classpath&gt;
  41. &lt;pathelement location="YOUR-PATH-TO/dotnet.jar"/&gt;
  42. &lt;/classpath&gt;
  43. &lt;/taskdef&gt;
  44. </pre>
  45. With this you can use the tasks like plain Ant tasks, they'll
  46. live in the default namespace. I.e. if you can run
  47. &lt;exec&gt; without any namespace prefix, you can do so for
  48. &lt;dotnetexec&gt; as well.
  49. </li>
  50. <li>Similar, but assigning a namespace URI
  51. <pre>
  52. &lt;taskdef
  53. uri="antlib:org.apache.tools.ant.taskdefs.optional.dotnet"
  54. resource="org/apache/tools/ant/taskdefs/optional/dotnet/antlib.xml"&gt;
  55. &lt;classpath&gt;
  56. &lt;pathelement location="YOUR-PATH-TO/dotnet.jar"/&gt;
  57. &lt;/classpath&gt;
  58. &lt;/taskdef&gt;
  59. </pre>
  60. This puts you task into a separate namespace than Ant's
  61. namespace. You would use the tasks like
  62. <pre>
  63. &lt;project
  64. xmlns:dn="antlib:org.apache.tools.ant.taskdefs.optional.dotnet"
  65. xmlns="antlib:org.apache.tools.ant"&gt;
  66. ...
  67. &lt;dn:nant&gt;
  68. &lt;dn:target name="my-target"/&gt;
  69. &lt;/dn:nant&gt;
  70. </pre>
  71. or
  72. <pre>
  73. &lt;nant xmlns="antlib:org.apache.tools.ant.taskdefs.optional.dotnet"&gt;
  74. &lt;target name="my-target"/&gt;
  75. &lt;/nant&gt;
  76. </pre>
  77. or a variation thereof.
  78. </li>
  79. <li>Using Ant's autodiscovery. Place <code>dotnet.jar</code>
  80. into a directory and use <code>ant -lib
  81. DIR-CONTAINING-THE-JAR</code> or copy it into
  82. <code>ANT_HOME/lib</code> - and then in your build file, simply
  83. declare the namespace on the <code>project</code> tag:
  84. <pre>
  85. &lt;project
  86. xmlns:dn="antlib:org.apache.tools.ant.taskdefs.optional.dotnet"
  87. xmlns="antlib:org.apache.tools.ant"&gt;
  88. </pre>
  89. And all tasks of this library will automatically be available
  90. in the <code>dn</code> namespace without any
  91. <code>taskdef</code>.
  92. </li>
  93. </ul>
  94. <h2>Tasks</h2>
  95. <ul>
  96. <li><a href="dotnetexec.html">dotnetexec</a> - run a .NET
  97. assembly that's in your PATH. You can chose the framework that
  98. is going to be used - defaults to Mono on non-Windows platforms
  99. and Microsoft's on Windows.</li>
  100. <li><a href="nant.html">nant</a> - execute the NAnt build
  101. tool.</li>
  102. <li><a href="msbuild.html">msbuild</a> - execute the MSBuild build
  103. tool, untested.</li>
  104. <li><a href="wix.html">wix</a> - execute the WiX toolset, untested.</li>
  105. <li><a href="nunit.html">nunit</a> - execute the
  106. nunit-console.exe <a href="http://www.nunit.org/">NUnit</a>
  107. test runner.</li>
  108. </ul>
  109. <hr/>
  110. <p align="center">Copyright &copy; 2003-2004 The Apache Software Foundation. All rights Reserved.</p>
  111. </body>
  112. </html>