diff --git a/proposal/sandbox/dotnet/docs/dotnetexec.html b/proposal/sandbox/dotnet/docs/dotnetexec.html new file mode 100644 index 000000000..2a4bdfb7b --- /dev/null +++ b/proposal/sandbox/dotnet/docs/dotnetexec.html @@ -0,0 +1,32 @@ + +
+ +Executes a .NET assembly that's on your PATH or pointed to + directly by the executable attribute.
+ +This task is an extension of Ant's exec + task and supports all attributes and nested child elements of that + task. Use the executable attribute to specify the name of the + assembly (including the extension).
+ +This task allows you to choose the .NET framework via the
+ vm
attribute. The default value is "microsoft" on
+ Windows and "mono" on all other platforms. "microsoft" is a magic
+ name that means "run the assembly as executable directly" - this
+ may also work for Mono on Linux systems with the binfmt feature
+ described in the Mono FAQ.
Copyright © 2003 Apache Software Foundation. All rights Reserved.
+ + \ No newline at end of file diff --git a/proposal/sandbox/dotnet/docs/index.html b/proposal/sandbox/dotnet/docs/index.html new file mode 100644 index 000000000..cb4b61ac8 --- /dev/null +++ b/proposal/sandbox/dotnet/docs/index.html @@ -0,0 +1,119 @@ + + + +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 NAnt from within Ant.
+ +The current version will only work for a CVS build of Ant + created from CVS HEAD (i.e. after Ant 1.6's feature freeze) of + 2003-11-27 or later. A version that can work with Ant 1.6 may be + provided at a later stage. This task library is never going to + work with Ant < 1.6.
+ +If you are building this from sources, run the antlib target
+ and you'll get a file dotnet.jar
. If you've
+ downloaded dotnet.jar
, you are already ready.
There are several ways to use the tasks:
+ ++ <taskdef + resource="org/apache/tools/ant/taskdefs/optional/dotnet/antlib.xml"> + <classpath> + <pathelement location="YOUR-PATH-TO/dotnet.jar"/> + </classpath> + </taskdef> ++ + 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. +
+ <taskdef + uri="antlib:org.apache.tools.ant.taskdefs.optional.dotnet" + resource="org/apache/tools/ant/taskdefs/optional/dotnet/antlib.xml"> + <classpath> + <pathelement location="YOUR-PATH-TO/dotnet.jar"/> + </classpath> + </taskdef> ++ + This puts you task into a separate namespace than Ant's + namespace. You would use the tasks like + +
+ <project + xmlns:dn="antlib:org.apache.tools.ant.taskdefs.optional.dotnet" + xmlns="antlib:org.apache.tools.ant"> + ... + <dn:nant> + <dn:target name="my-target"/> + </dn:nant> ++ + or + +
+ <nant xmlns="antlib:org.apache.tools.ant.taskdefs.optional.dotnet"> + <target name="my-target"/> + </nant> ++ + or a variation thereof. +
dotnet.jar
+ into a directory and use ant -lib
+ DIR-CONTAINING-THE-JAR
or copy it into
+ ANT_HOME/lib
- and then in your build file, simply
+ declare the namespace on the project
tag:
+
+ + <project + xmlns:dn="antlib:org.apache.tools.ant.taskdefs.optional.dotnet" + xmlns="antlib:org.apache.tools.ant"> ++ + And all tasks of this library will automatically be available + in the
dn
namespace without any
+ taskdef
.
+ Copyright © 2003 Apache Software Foundation. All rights Reserved.
+ + diff --git a/proposal/sandbox/dotnet/docs/msbuild.html b/proposal/sandbox/dotnet/docs/msbuild.html new file mode 100644 index 000000000..51b839ae4 --- /dev/null +++ b/proposal/sandbox/dotnet/docs/msbuild.html @@ -0,0 +1,110 @@ + + + +Runs the MSBuild build tool presented at the 2003 PDC. This + task is completely untested as the developers have no access to + the tool, it has been implemented by looking at the docs only.
+ +You can either use an existing build file or nest a build file + (snippet) as a child into the task. If you don't specify either, + MSBuild's default build file search algorithm will apply. Nesting + build file snippets is most probably not working correctly.
+ +Attribute | +Description | +Required | +
buildfile | +External build file to invoke MSBuild on. | +No. | +
vm | +Same as dotnetexec's vm attribute. + Specify the framework to use. | +No. | +
target
has a single required attribute name -
+ specifies a target to be run.
property
has two required attributes. name and
+ value that specify name and value of a property that is to be
+ defined in the MSBuild invocation.
This element allows no attributes. You can nest a MSBuild build
+ file into it and MSBuild will be executed on that. You can also nest
+ a build file snippet instead and Ant will wrap the necessary MSBuild
+ <Project> around it.
Let MSBuild search for a *.proj file in the (Ant) project's base + directory and execute the default target in it:
+ +<msbuild/>+ +
Let MSBuild execute the targets named foo and bar in the build
+ file msbuild.proj in Ant's basedir and pass the property
+ /property:test=testvalue
to it:
+ <msbuild buildfile="msbuild.proj"> + <target name="foo"/> + <target name="bar"/> + <property name="test" value="testvalue"/> + </msbuild> ++ +
Define a build file embeded into the task, let MSBuild execute the + echo target of that build file.
+ ++ <msbuild> + <target name="echo"> + <build> + <Project DefaultTargets="empty"> + <Target Name="empty"/> + <Target Name="echo"> + <Task Name="Echo" Message="This is MSBuild"/> + </Target> + </Project> + </build> + </msbuild> ++ +
Run MSBuild's Echo task (if there actually is one):
+ ++ <msbuild> + <build> + <Task Name="Echo" Message="This is MSBuild"/> + </build> + </msbuild> ++ +
Copyright © 2003 Apache Software Foundation. All rights Reserved.
+ + \ No newline at end of file diff --git a/proposal/sandbox/dotnet/docs/nant.html b/proposal/sandbox/dotnet/docs/nant.html new file mode 100644 index 000000000..94c072835 --- /dev/null +++ b/proposal/sandbox/dotnet/docs/nant.html @@ -0,0 +1,108 @@ + + + +Runs the NAnt build + tool.
+ +You can either use an existing build file or nest a build file + (snippet) as a child into the task. If you don't specify either, + NAnt's default build file search algorithm will apply.
+ +Attribute | +Description | +Required | +
buildfile | +External build file to invoke NAnt on. | +No. | +
vm | +Same as dotnetexec's vm attribute. + Specify the framework to use. | +No. | +
target
has a single required attribute name -
+ specifies a target to be run.
property
has two required attributes. name and
+ value that specify name and value of a property that is to be
+ defined in the NAnt invocation.
This element allows no attributes. You can nest a NAnt build
+ file into it and NAnt will be executed on that. You can also nest
+ a build file snippet instead and Ant will wrap the necessary NAnt
+ <project> around it.
Let NAnt search for a *.build file in the (Ant) project's base + directory and execute the default target in it:
+ +<nant/>+ +
Let NAnt execute the targets named foo and bar in the build
+ file nant.build in Ant's basedir and pass the property
+ -D:test=testvalue
to it:
+ <nant buildfile="nant.build"> + <target name="foo"/> + <target name="bar"/> + <property name="test" value="testvalue"/> + </nant> ++ +
Define a build file embeded into the task, let NAnt execute the + echo target of that build file.
+ ++ <nant> + <target name="echo"> + <build> + <project basedir="." default="empty"> + <target name="empty"/> + <target name="echo"> + <echo message="this is NAnt"/> + </target> + </project> + </build> + </nant> ++ +
Run NAnt's echo task:
+ ++ <nant> + <build> + <echo message="this is NAnt"/> + </build> + </nant> ++ +
Copyright © 2003 Apache Software Foundation. All rights Reserved.
+ + \ No newline at end of file