2014-10-08 21:45:17 +00:00
|
|
|
<project name="FreqSample" basedir="." default="main" >
|
|
|
|
<property name="src.dir" value="src" />
|
|
|
|
<property name="bin.dir" value="bin" />
|
|
|
|
<property name="classes.dir" value="${bin.dir}/classes" />
|
|
|
|
<property name="jar.dir" value="${bin.dir}/jar" />
|
|
|
|
<property name="main-class" value="freqsample.FreqSample" />
|
|
|
|
|
|
|
|
<target name="clean" >
|
|
|
|
<delete dir="bin" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compile" >
|
|
|
|
<mkdir dir="${classes.dir}" />
|
2014-10-09 00:49:21 +00:00
|
|
|
<javac includeantruntime="false" srcdir="${src.dir}" destdir="${classes.dir}" />
|
2014-10-08 21:45:17 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="jar" depends="compile" >
|
|
|
|
<mkdir dir="${jar.dir}" />
|
|
|
|
<jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${classes.dir}" >
|
|
|
|
<manifest>
|
|
|
|
<attribute name="Main-Class" value="${main-class}" />
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
</target>
|
2014-10-09 00:40:27 +00:00
|
|
|
|
2014-10-09 00:45:40 +00:00
|
|
|
<target name="main" depends="jar" />
|
2014-10-08 21:45:17 +00:00
|
|
|
</project>
|