You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-java/sac/files/build.xml

34 lines
793 B

<?xml version="1.0"?>
<project name="sac" 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"/>
<!-- init -->
<target name="init">
<tstamp/>
<mkdir dir="${dist}"/>
<mkdir dir="${build}"/>
</target>
<!-- compile everything -->
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${build}"/>
</target>
<!-- build the jar file -->
<target name="jar" depends="compile">
<jar jarfile="${dist}/${jarfile}" basedir="${build}"/>
</target>
<!-- clean up -->
<target name="clean">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>