ecde7402da
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@384 6952d904-891a-0410-993b-d76249ca496b
42 lines
1013 B
XML
42 lines
1013 B
XML
<?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>
|