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