Now we'll create a convenience target called 'all' that will do exactly what it implies
<!-- ==========================================================
all
Run all core tasks
========================================================== -->
<target name="all" depends="init" description="run all core tasks">
<antcall target="svn"/>
<!-- IMPLIED
<antcall target="compile"/>
<antcall target="junit"/>
<antcall target="javadoc"/>
<antcall target="jar"/>
-->
<antcall target="zip"/>
</target>
all
Run all core tasks
========================================================== -->
<target name="all" depends="init" description="run all core tasks">
<antcall target="svn"/>
<!-- IMPLIED
<antcall target="compile"/>
<antcall target="junit"/>
<antcall target="javadoc"/>
<antcall target="jar"/>
-->
<antcall target="zip"/>
</target>
> ant all
Also, you can decide which tasks you wish to declare as "main" task by adding and removing "descriptions" from the targets' attributes.
>ant -p
Buildfile: build.xml
Main targets:
all run all core tasks
clean delete files built
compile compile source
javadoc api generation
svn clean up code base prior to repository commitment
zip Create zip file
> ant svn
Buildfile: build.xml
Main targets:
all run all core tasks
clean delete files built
compile compile source
javadoc api generation
svn clean up code base prior to repository commitment
zip Create zip file
> ant svn
commit
Building it All