2001-07-07 07:07:20 +08:00
|
|
|
<?xml version="1.0"?>
|
2001-01-18 22:50:15 +08:00
|
|
|
<!--
|
|
|
|
|
|
|
|
build file to build the donated retep tools packages
|
|
|
|
|
2001-07-07 07:07:20 +08:00
|
|
|
$Header: /cvsroot/pgsql/contrib/retep/Attic/build.xml,v 1.8 2001/07/06 23:07:20 petere Exp $
|
2001-01-18 22:50:15 +08:00
|
|
|
|
|
|
|
-->
|
|
|
|
|
2001-07-07 07:07:20 +08:00
|
|
|
<!DOCTYPE project [
|
|
|
|
<!ENTITY jarname "retepTools.jar">
|
|
|
|
]>
|
|
|
|
|
|
|
|
<project name="retep" default="all" basedir=".">
|
2001-01-18 22:50:15 +08:00
|
|
|
|
|
|
|
<!-- set global properties for this build -->
|
2001-07-07 07:07:20 +08:00
|
|
|
<property name="srcdir" value="." />
|
|
|
|
<property name="builddir" value="build" />
|
2001-01-18 22:50:15 +08:00
|
|
|
<property name="package" value="uk/org/retep" />
|
2001-07-07 07:07:20 +08:00
|
|
|
<property name="jardir" value="jars" />
|
2001-01-18 22:50:15 +08:00
|
|
|
|
|
|
|
<!-- 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>
|
|
|
|
|
2001-05-17 00:20:53 +08:00
|
|
|
<target name="warning" depends="checks" unless="jdk1.2+">
|
2001-07-07 07:07:20 +08:00
|
|
|
<echo>
|
|
|
|
*** WARNING: Contributed retep tools need jdk1.2 or later.
|
|
|
|
*** Compilation NOT done
|
|
|
|
</echo>
|
2001-05-17 00:20:53 +08:00
|
|
|
</target>
|
|
|
|
|
|
|
|
|
2001-07-07 07:07:20 +08:00
|
|
|
<!-- default target -->
|
|
|
|
<target name="all">
|
|
|
|
<antcall target="jar" />
|
2001-01-18 22:50:15 +08:00
|
|
|
</target>
|
|
|
|
|
2001-07-07 07:07:20 +08:00
|
|
|
|
|
|
|
<!-- Builds the various jar files -->
|
|
|
|
<target name="jar" depends="compile">
|
|
|
|
<jar jarfile="${jardir}/&jarname;" whenempty="fail">
|
|
|
|
<fileset dir="${builddir}">
|
|
|
|
<include name="**/*.class" />
|
|
|
|
</fileset>
|
|
|
|
|
|
|
|
<fileset dir="${srcdir}">
|
|
|
|
<include name="**/*.properties" />
|
|
|
|
</fileset>
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
2001-01-18 22:50:15 +08:00
|
|
|
|
|
|
|
<!-- Builds the XML Tools -->
|
2001-05-17 00:20:53 +08:00
|
|
|
<target name="compile" depends="checks,prepare,warning" if="jdk1.2+">
|
2001-07-07 07:07:20 +08:00
|
|
|
<javac srcdir="${srcdir}" destdir="${builddir}">
|
2001-03-05 17:15:38 +08:00
|
|
|
<include name="${package}/**" />
|
2001-05-17 01:09:26 +08:00
|
|
|
<exclude name="${package}/**" unless="jdk1.2+" />
|
2001-01-18 22:50:15 +08:00
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
2001-07-07 07:07:20 +08:00
|
|
|
|
|
|
|
<!-- Prepares the build by creating a directory to place the class files -->
|
|
|
|
<target name="prepare">
|
|
|
|
<mkdir dir="${builddir}" />
|
|
|
|
<mkdir dir="${jardir}" />
|
2001-01-18 22:50:15 +08:00
|
|
|
</target>
|
|
|
|
|
2001-07-07 07:07:20 +08:00
|
|
|
|
|
|
|
<target name="install" depends="all" if="install.directory">
|
2001-01-18 22:50:15 +08:00
|
|
|
<copy todir="${install.directory}" overwrite="true" filtering="off">
|
2001-07-07 07:07:20 +08:00
|
|
|
<fileset dir="${jardir}">
|
|
|
|
<include name="&jarname;" />
|
2001-01-18 22:50:15 +08:00
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
2001-07-07 07:07:20 +08:00
|
|
|
|
2001-03-11 19:07:01 +08:00
|
|
|
<target name="uninstall" if="install.directory">
|
|
|
|
<delete>
|
|
|
|
<fileset dir="${install.directory}">
|
2001-07-07 07:07:20 +08:00
|
|
|
<include name="&jarname;" />
|
2001-03-11 19:07:01 +08:00
|
|
|
</fileset>
|
|
|
|
</delete>
|
|
|
|
</target>
|
2001-01-18 22:50:15 +08:00
|
|
|
|
2001-07-07 07:07:20 +08:00
|
|
|
|
|
|
|
<!-- This target removes any class files from the build directory -->
|
|
|
|
<target name="clean">
|
|
|
|
<delete quiet="true" dir="${builddir}" />
|
|
|
|
<delete quiet="true" dir="${jardir}" />
|
|
|
|
</target>
|
|
|
|
|
2001-03-11 19:07:01 +08:00
|
|
|
</project>
|