Changeset 206 for liacs/TOOS/assignment1/build.xml
- Timestamp:
- Oct 25, 2010, 8:42:20 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
liacs/TOOS/assignment1/build.xml
r205 r206 1 <project> 1 <project name="Census" > 2 3 <property name="src.dir" value="src"/> 2 4 <property name="lib.dir" value="lib" /> 5 <property name="build.dir" value="build"/> 6 <property name="classes.dir" value="${build.dir}/classes"/> 7 <property name="jar.dir" value="${build.dir}/jar"/> 3 8 <property name="javac.includeAntRuntime" value="false" /> 9 <property name="main-class" value="nl.rickvanderzwet.toos.assignment1.Census" /> 4 10 5 11 <path id="classpath"> … … 9 15 10 16 <target name="clean"> 11 <delete dir=" build"/>17 <delete dir="${build.dir}"/> 12 18 </target> 13 19 14 20 <target name="compile"> 15 <mkdir dir=" build/classes"/>16 <javac srcdir=" src" destdir="build/classes"21 <mkdir dir="${classes.dir}"/> 22 <javac srcdir="${src.dir}" destdir="${classes.dir}" 17 23 includeAntRuntime="${javac.includeAntRuntime}" classpathref="classpath"> 18 24 19 25 <compilerarg value="-Xlint:unchecked" /> 20 26 </javac> 27 <copy todir="${classes.dir}"> 28 <fileset dir="${src.dir}" excludes="**/*.java"/> 29 </copy> 21 30 </target> 22 31 23 32 <target name="jar" depends="compile"> 24 <mkdir dir=" build/jar"/>25 <jar destfile=" build/jar/Census.jar" basedir="build/classes">33 <mkdir dir="${jar.dir}"/> 34 <jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${classes.dir}"> 26 35 <manifest> 27 <attribute name="Main-Class" value=" Census"/>36 <attribute name="Main-Class" value="${main-class}" /> 28 37 </manifest> 29 38 </jar> 30 39 </target> 31 40 32 <target name="run" depends=" jar">33 <java jar="build/jar/Census.jar" fork="true">41 <target name="run" depends="clean, jar"> 42 <java fork="true" classname="${main-class}"> 34 43 <classpath> 35 44 <path refid="classpath" /> 45 <path location="${jar.dir}/${ant.project.name}.jar" /> 36 46 </classpath> 37 47 </java>
Note:
See TracChangeset
for help on using the changeset viewer.