target to generate javadoc
This commit is contained in:
parent
5a202c097e
commit
a8dbc26260
1 changed files with 18 additions and 10 deletions
28
build.xml
28
build.xml
|
@ -3,27 +3,28 @@
|
||||||
simple example build file
|
simple example build file
|
||||||
</description>
|
</description>
|
||||||
<!-- set global properties for this build -->
|
<!-- set global properties for this build -->
|
||||||
<property name="src" location="src"/>
|
<property name="src.dir" location="src"/>
|
||||||
<property name="build" location="build"/>
|
<property name="build.dir" location="build"/>
|
||||||
<property name="dist" location="dist"/>
|
<property name="dist.dir" location="dist"/>
|
||||||
|
<property name="doc.dir" location="doc"/>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<!-- Create the time stamp -->
|
<!-- Create the time stamp -->
|
||||||
<tstamp/>
|
<tstamp/>
|
||||||
<!-- Create the build directory structure used by compile -->
|
<!-- Create the build directory structure used by compile -->
|
||||||
<mkdir dir="${build}"/>
|
<mkdir dir="${build.dir}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="compile" depends="init"
|
<target name="compile" depends="init"
|
||||||
description="compile the source " >
|
description="compile the source " >
|
||||||
<!-- Compile the java code from ${src} into ${build} -->
|
<!-- Compile the java code from ${src.dir} into ${build.dir} -->
|
||||||
<javac srcdir="${src}" destdir="${build}"/>
|
<javac srcdir="${src.dir}" destdir="${build.dir}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="dist" depends="compile"
|
<target name="dist" depends="compile"
|
||||||
description="generate the distribution" >
|
description="generate the distribution" >
|
||||||
<!-- Put everything in ${build} into the find-hidden-beds-${DSTAMP}.jar file -->
|
<!-- Put everything in ${build.dir} into the find-hidden-beds-${DSTAMP}.jar file -->
|
||||||
<jar jarfile="${dist}/trie-${DSTAMP}.jar" basedir="${build}">
|
<jar jarfile="${dist.dir}/trie-${DSTAMP}.jar" basedir="${build.dir}">
|
||||||
<manifest>
|
<manifest>
|
||||||
<attribute name="Main-Class" value="com.hashbangbash.trie.App"/>
|
<attribute name="Main-Class" value="com.hashbangbash.trie.App"/>
|
||||||
</manifest>
|
</manifest>
|
||||||
|
@ -33,7 +34,14 @@
|
||||||
<target name="clean"
|
<target name="clean"
|
||||||
description="clean up" >
|
description="clean up" >
|
||||||
<!-- Delete the ${build} and ${dist} directory trees -->
|
<!-- Delete the ${build} and ${dist} directory trees -->
|
||||||
<delete dir="${build}"/>
|
<delete dir="${build.dir}"/>
|
||||||
<delete dir="${dist}"/>
|
<delete dir="${dist.dir}"/>
|
||||||
|
<delete dir="${doc.dir}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<!-- Generate javadocs for current project into ${doc.dir} -->
|
||||||
|
<target name="doc" depends="init" description="generate documentation">
|
||||||
|
<javadoc sourcepath="${src.dir}" destdir="${doc.dir}"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
Loading…
Reference in a new issue