<?xml version="1.0"?>
<project name="ad91util" default="all" basedir="..">
<property name="src.dir" value="${basedir}/src"/>
<property name="compile.dir" value="${basedir}/bin"/>
<property name="lib.dir" value="${basedir}/lib"/>
<property name="jar.name" value="ad91util.jar"/>
<path id="compile.dependencies">
<fileset dir="${lib.dir}" includes="*.jar"/>
</path>
<target name="clean" description="Cleans up all build-generated output">
<delete dir="${compile.dir}" failonerror="false"/>
<delete dir="${basedir}" includes="${jar.name}" failonerror="false" />
</target>
<target name="compile">
<mkdir dir="${compile.dir}"/>
<javac destdir="${compile.dir}" includeAntRuntime="no" encoding="GBK" debug="true">
<src path="${src.dir}"/>
<classpath>
<path refid="compile.dependencies"/>
</classpath>
</javac>
<copy todir="${compile.dir}">
<fileset dir="${src.dir}" includes="**/*.properties" />
<fileset dir="${src.dir}" includes="**/*.xml" excludes="build.xml" />
</copy>
</target>
<target name="jar" depends="compile">
<jar jarfile="${basedir}/${jar.name}">
<fileset dir="${compile.dir}" includes="**/*.class" />
</jar>
</target>
<target name="all" depends="clean,jar" />
</project>