linamh/dev-java/jpwgen/files/build.xml

42 lines
1013 B
XML
Raw Normal View History

<?xml version="1.0"?>
<project name="jpwgen" default="jar">
<!-- some properties -->
<property name="src" value="src" />
<property name="build" value="build" />
<property name="dist" value="dist"/>
<property name="jarfile" value="${ant.project.name}.jar"/>
<property file="build.properties"/>
<!-- init -->
<target name="init">
<tstamp/>
<mkdir dir="${dist}"/>
<mkdir dir="${build}"/>
</target>
<!-- compile everything -->
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${build}" classpath="${classpath}"/>
</target>
<!-- build the jar file -->
<target name="jar" depends="compile">
<jar jarfile="${dist}/${jarfile}" basedir="${build}">
<fileset dir="${src}">
<include name="**/*.png"/>
<include name="**/*.ucd"/>
<include name="**/*.properties"/>
</fileset>
</jar>
</target>
<!-- clean up -->
<target name="clean">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>