comparison build.xml @ 58:f2c5f1fca9a7

added javadoc capability
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Dec 2011 21:53:52 -0600
parents 19831877eaed
children f5e52169f056
comparison
equal deleted inserted replaced
57:19831877eaed 58:f2c5f1fca9a7
2 2
3 3
4 <property name="build" value="build"/> 4 <property name="build" value="build"/>
5 <property name="src" value="src"/> 5 <property name="src" value="src"/>
6 <property name="dist" value="dist"/> 6 <property name="dist" value="dist"/>
7 <property name="docs" value="docs"/>
7 <property name="lib" value="lib"/> 8 <property name="lib" value="lib"/>
8 9
9 10
10 11
11 <path id="classpath"> 12 <path id="classpath">
33 <javac srcdir="${src}" destdir="${build}" 34 <javac srcdir="${src}" destdir="${build}"
34 classpathref="classpath" 35 classpathref="classpath"
35 includeantruntime="false"/> 36 includeantruntime="false"/>
36 </target> 37 </target>
37 38
38 <target name="dist" depends="compile" > 39 <target name="dist" depends="compile,javadoc" >
39 <mkdir dir="${dist}"/> 40 <mkdir dir="${dist}"/>
40 <jar jarfile="${dist}/jmeCapture.jar"> 41 <jar jarfile="${dist}/jmeCapture.jar">
41 <fileset dir="${src}"/> 42 <fileset dir="${src}"/>
42 <fileset dir="${build}"/> 43 <fileset dir="${build}"/>
43 </jar> 44 </jar>
44 </target> 45 </target>
45 46
46 <target name="clean" > 47 <target name="clean">
47 <delete dir="${build}"/> 48 <delete dir="${build}"/>
48 <delete dir="${dist}"/> 49 <delete dir="${dist}"/>
50 <delete dir="${docs}"/>
49 </target> 51 </target>
50 52
53 <target name="javadoc">
54 <mkdir dir="${docs}"/>
55 <javadoc sourcepath="${src}"
56 classpathref="classpath"
57 destdir="${docs}"/>
58 </target>
51 59
52 </project> 60 </project>
53 61