-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
47 lines (39 loc) · 1.27 KB
/
build.xml
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
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="utf-8"?>
<project basedir="." default="dist" name="sesame.transformer">
<description>Build file for the Sesame Cocoon transformer.</description>
<!-- properties -->
<property name="src" location="src" />
<property name="lib" location="lib" />
<property name="build" location="build" />
<property name="dist" location="dist" />
<path id="project.class.path">
<fileset dir="${lib}/">
<include name="*.jar" />
<include name="**/*.jar" />
</fileset>
</path>
<target name="init">
<tstamp />
<mkdir dir="${build}" />
</target>
<target name="compile" depends="init" description="compile the source">
<javac srcdir="${src}"
destdir="${build}"
classpathref="project.class.path"
source="1.5"
target="1.5" />
</target>
<target name="dist" depends="compile" description="generate the distribution">
<mkdir dir="${dist}" />
<jar jarfile="${dist}/${ant.project.name}.jar" basedir="${build}" />
<copy todir="${dist}">
<fileset dir="${lib}/sesame-lib">
<include name="*.jar" />
</fileset>
</copy>
</target>
<target name="clean" description="clean up">
<delete dir="${build}" />
<delete dir="${dist}" />
</target>
</project>