2001-01-18 22:50:15 +08:00
|
|
|
<!--
|
|
|
|
|
|
|
|
build file to build the donated retep tools packages
|
|
|
|
|
2001-03-05 17:15:38 +08:00
|
|
|
$Id: build.xml,v 1.3 2001/03/05 09:15:35 peter Exp $
|
2001-01-18 22:50:15 +08:00
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
<project name="retep" default="jar" basedir=".">
|
|
|
|
|
|
|
|
<!-- set global properties for this build -->
|
|
|
|
<property name="src" value="." />
|
|
|
|
<property name="dest" value="build" />
|
|
|
|
<property name="package" value="uk/org/retep" />
|
|
|
|
<property name="jars" value="jars" />
|
|
|
|
|
|
|
|
<!-- Some checks used to build dependent on the environment -->
|
|
|
|
<target name="checks">
|
|
|
|
<available property="jdk1.2+" classname="java.lang.ThreadLocal" />
|
|
|
|
<available property="jdk1.3+" classname="java.lang.StrictMath" />
|
|
|
|
<available property="jdk1.2e+" classname="javax.sql.DataSource" />
|
|
|
|
<available property="xml" classname="org.xml.sax.Parser" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- Prepares the build by creating a directory to place the class files -->
|
|
|
|
<target name="prepare">
|
|
|
|
<mkdir dir="${dest}" />
|
|
|
|
<mkdir dir="${jars}" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- This target removes any class files from the build directory -->
|
|
|
|
<target name="clean">
|
|
|
|
<delete dir="${dest}" />
|
|
|
|
<delete dir="${jars}" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- Builds the XML Tools -->
|
2001-03-05 17:15:38 +08:00
|
|
|
<target name="compile" depends="checks,prepare">
|
2001-01-18 22:50:15 +08:00
|
|
|
<javac srcdir="${src}" destdir="${dest}">
|
2001-03-05 17:15:38 +08:00
|
|
|
<include name="${package}/**" />
|
2001-01-18 22:50:15 +08:00
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- Builds the various jar files -->
|
2001-03-05 17:15:38 +08:00
|
|
|
<target name="jar" depends="compile">
|
2001-01-18 22:50:15 +08:00
|
|
|
<jar jarfile="${jars}/retepTools.jar" basedir="${dest}">
|
2001-03-05 17:15:38 +08:00
|
|
|
<include name="${package}/**" />
|
2001-01-18 22:50:15 +08:00
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="install" depends="jar" if="install.directory">
|
|
|
|
<copy todir="${install.directory}" overwrite="true" filtering="off">
|
|
|
|
<fileset dir="${jars}">
|
|
|
|
<include name="**/*.jar" />
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|
|
|
|
|