2009-03-02 02:27:32 +08:00
|
|
|
<project name="AnalysisTK" default="dist" basedir=".">
|
|
|
|
|
<description>
|
|
|
|
|
simple build file
|
|
|
|
|
</description>
|
|
|
|
|
<!-- set global properties for this build -->
|
|
|
|
|
<property name="src" location="trunk/java/"/>
|
|
|
|
|
<property name="build" location="out/production/AnalysisTK"/>
|
|
|
|
|
<property name="dist" location="dist"/>
|
2009-03-03 05:51:25 +08:00
|
|
|
<property name="jars" location="trunk/java/jars/functionalj.jar"/>
|
|
|
|
|
|
2009-03-02 02:27:32 +08:00
|
|
|
<target name="init">
|
|
|
|
|
<!-- Create the time stamp -->
|
|
|
|
|
<tstamp/>
|
|
|
|
|
<!-- Create the build directory structure used by compile -->
|
|
|
|
|
<mkdir dir="${build}"/>
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
<target name="compile" depends="init"
|
|
|
|
|
description="compile the source " >
|
|
|
|
|
<!-- Compile the java code from ${src} into ${build} -->
|
2009-03-03 05:51:25 +08:00
|
|
|
<javac srcdir="${src}" destdir="${build}" classpath="${jars}"/>
|
2009-03-02 02:27:32 +08:00
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
<target name="dist" depends="compile"
|
|
|
|
|
description="generate the distribution" >
|
|
|
|
|
<!-- Create the distribution directory -->
|
|
|
|
|
<mkdir dir="${dist}/lib"/>
|
|
|
|
|
|
|
|
|
|
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
|
|
|
|
<jar jarfile="${dist}/AnalysisTK-${DSTAMP}.jar" basedir="${build}"/>
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
<target name="clean"
|
|
|
|
|
description="clean up" >
|
|
|
|
|
<!-- Delete the ${build} and ${dist} directory trees -->
|
|
|
|
|
<delete dir="${build}"/>
|
|
|
|
|
<delete dir="${dist}"/>
|
|
|
|
|
</target>
|
|
|
|
|
</project>
|