diff 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
line wrap: on
line diff
     1.1 --- a/build.xml	Sat Dec 03 19:51:47 2011 -0600
     1.2 +++ b/build.xml	Sat Dec 03 21:53:52 2011 -0600
     1.3 @@ -4,6 +4,7 @@
     1.4    <property name="build" value="build"/>
     1.5    <property name="src" value="src"/>
     1.6    <property name="dist" value="dist"/>
     1.7 +  <property name="docs" value="docs"/>
     1.8    <property name="lib"  value="lib"/>
     1.9  
    1.10  
    1.11 @@ -35,7 +36,7 @@
    1.12  	   includeantruntime="false"/>
    1.13    </target>
    1.14  
    1.15 -  <target name="dist" depends="compile" >
    1.16 +  <target name="dist" depends="compile,javadoc" >
    1.17      <mkdir dir="${dist}"/> 
    1.18      <jar jarfile="${dist}/jmeCapture.jar">
    1.19  	 <fileset dir="${src}"/>
    1.20 @@ -43,11 +44,18 @@
    1.21      </jar>
    1.22    </target>
    1.23  
    1.24 -  <target name="clean" > 
    1.25 +  <target name="clean"> 
    1.26      <delete dir="${build}"/> 
    1.27      <delete dir="${dist}"/> 
    1.28 +    <delete dir="${docs}"/>
    1.29    </target> 
    1.30  
    1.31 +  <target name="javadoc">
    1.32 +    <mkdir dir="${docs}"/>
    1.33 +    <javadoc sourcepath="${src}"
    1.34 +	     classpathref="classpath"
    1.35 +	     destdir="${docs}"/>
    1.36 +  </target>
    1.37  
    1.38  </project>
    1.39