ant should use the ant-features ;-)
added descriptions to the 'main'-tasks
martin
Index: build.xml
===================================================================
RCS file: /home/cvspublic/jakarta-ant/build.xml,v
retrieving revision 1.142
diff -u -r1.142 build.xml
--- build.xml 2001/03/09 11:45:11 1.142
+++ build.xml 2001/03/14 14:26:51
@@ -159,7 +159,9 @@
Build the code
===================================================================
-->
- <target name="build" depends="prepare, check_for_optional_packages">
+ <target name="build"
+ depends="prepare, check_for_optional_packages"
+ description="--> compiles the source code">
<mkdir dir="${build.dir}"/>
<mkdir dir="${build.classes}"/>
<mkdir dir="${build.lib}"/>
@@ -230,10 +232,13 @@
<!--
===================================================================
- Create the ant jars: ant.jar and
optional.jar
+ Create the ant jars: ant.jar and optional.jar
+
===================================================================
-->
- <target name="jars" depends="build">
+ <target name="jars"
+ depends="build"
+ description="--> creates the ant jars">
<jar jarfile="${build.lib}/${name}.jar"
basedir="${build.classes}"
@@ -254,7 +259,9 @@
Create the essential distribution that can run ant
===================================================================
-->
- <target name="dist-lite" depends="jars, setup-distproperties">
+ <target name="dist-lite"
+ depends="jars, setup-distproperties"
+ description="--> creates a minimum distribution to run ant">
<mkdir dir="${dist.dir}"/>
<mkdir dir="${dist.bin}"/>
@@ -287,7 +294,7 @@
Create the complete distribution
===================================================================
-->
- <target name="dist">
+ <target name="dist" description="--> creates a complete distribution">
<antcall target="internal_dist">
<param name="dist.dir" value="${dist.name}" />
</antcall>
@@ -334,7 +341,7 @@
Target to create bootstrap build
===================================================================
-->
- <target name="bootstrap">
+ <target name="bootstrap" description="--> creates a bootstrap build">
<antcall target="dist-lite">
<param name="dist.dir" value="${bootstrap.dir}" />
</antcall>
@@ -346,7 +353,9 @@
Create the source distribution
===================================================================
-->
- <target name="src-dist" depends="setup-distproperties">
+ <target name="src-dist"
+ depends="setup-distproperties"
+ description="--> creates a source distribution">
<mkdir dir="${src.dist.dir}" />
@@ -399,7 +408,8 @@
Create the binary distribution
===================================================================
-->
- <target name="distribution">
+ <target name="distribution"
+ description="--> creates a binary distribution">
<mkdir dir="${dist.base}"/>
<antcall target="internal_dist">
@@ -458,7 +468,8 @@
Cleans up build and distribution directories
===================================================================
-->
- <target name="clean">
+ <target name="clean"
+ description="--> cleans up build and dis directories">
<delete dir="${build.dir}" />
<delete dir="${dist.base}" />
<delete dir="${defaultdist.dir}" />
@@ -472,7 +483,9 @@
Cleans everything
===================================================================
-->
- <target name="allclean" depends="clean">
+ <target name="allclean"
+ depends="clean"
+ description="--> cleans up everything">
<delete file="${bootstrap.dir}/bin/antRun" />
<delete file="${bootstrap.dir}/bin/antRun.bat" />
</target>
@@ -501,14 +514,15 @@
-->
<target name="javadoc_check">
- <uptodate property="javadoc.notrequired"
targetfile="${build.javadocs}/packages.html" >
+ <uptodate property="javadoc.notrequired"
+targetfile="${build.javadocs}/packages.html" >
<srcfiles dir= "${java.dir}" includes="**/*.java"/>
</uptodate>
</target>
<target name="javadocs" depends="prepare, javadoc_check"
unless="javadoc.notrequired"
- description="Creates the API documentation">
+ description="--> creates the API documentation">
<mkdir dir="${build.javadocs}"/>
<javadoc packagenames="org.apache.*"
sourcepath="${java.dir}"
@@ -626,7 +640,8 @@
<!--
===================================================================
- Main target - runs dist-lite by
default
+ Main target - runs dist-lite by default
+
===================================================================
-->
<target name="main">
@@ -634,3 +649,5 @@
</target>
</project>
+
+
The command completed successfully.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]