link
Avalon
Avalon Central
Home PlanetProductsCentral
Standard Project Template

The standard.xml template provides a set of common build targets backed by magic tasks that automate the resolution of working directories, classpaths for source and test compilation, naming of produced artifacts such as jar files, artifact publication, and a number of content generation tasks including javadoc and xdoc management.


<-- standard.xml -->

<project name="standard" xmlns:x="antlib:org.apache.avalon.tools">

  <x:home/>

  <target name="info">
    <x:info/>
  </target>

  <target name="init" depends="info">
    <x:init/>
  </target>

  <target name="clean" depends="info">
    <x:clean/>
  </target>

  <target name="prepare" depends="init">
    <x:prepare/>
  </target>

  <target name="build" depends="prepare">
    <x:javac/>
  </target>

  <target name="package" depends="build">
    <x:jar/>
  </target>

  <target name="test" depends="package">
    <x:junit/>
  </target>

  <target name="install" depends="test">
    <x:install/>
  </target>

  <target name="javadoc" depends="prepare">
    <x:javadoc/>
  </target>

  <target name="xdoc" depends="prepare">
    <x:xdoc theme="modern"/>
  </target>

  <target name="site" depends="javadoc,xdoc"/>

  <target name="dist" depends="install,site"/>
  
</project>