blob: 2ba349baece85d23bfd9f3b0384fd32944cb9b66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<?xml version="1.0"?>
<project name="flute" 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}"/>
</target>
<!-- clean up -->
<target name="clean">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>
|