1 2<project name="JSR305-ri" default="build"> 3 4 5 <target name="build" depends="clean,classes,jars"/> 6 <target name="classes"> 7 <mkdir dir="build/classes"/> 8 <javac destdir="build/classes" source="1.5" target="1.5" debug="on"> 9 <src path="src/main/java"/> 10 <classpath> 11 <pathelement location="build/classes"/> 12 </classpath> 13 </javac> 14 </target> 15 16 <target name="clean"> 17 <delete dir="build/classes"/> 18 </target> 19 <target name="jars" depends="classes"> 20 <delete quiet="true"> 21 <fileset dir="build/jsr305.jar"/> 22 <fileset dir="build/jsr305-src.jar"/> 23 </delete> 24 <jar destfile="build/jsr305.jar"> 25 <fileset dir="src/main/java"/> 26 <fileset dir="build/classes"/> 27 </jar> 28 <jar destfile="build/jsr305-src.jar"> 29 <fileset dir="src/main/java"/> 30 <fileset dir="src/main/resources"/> 31 </jar> 32 </target> 33</project> 34 35<!-- vim:set ts=4: --> 36