-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
65 lines (54 loc) · 2 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="shared" default="build" >
<!-- Compiler options -->
<property name="compiler.debug" value="on"/>
<property name="compiler.generate.no.warnings" value="off"/>
<property name="compiler.args" value="-Xlint:unchecked"/>
<property name="compiler.max.memory" value="128m"/>
<!-- Project Libraries -->
<path id="classpath">
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
<pathelement location="${basedir}/conf"/>
</path>
<!-- Paths -->
<property name="output.dir" value="${basedir}/classes"/>
<property name="build.dir" value="${basedir}/build"/>
<property name="dist.dir" value="${basedir}/dist"/>
<path id="sourcepath">
<dirset dir="${basedir}">
<include name="src"/>
</dirset>
</path>
<target name="compile" description="compile production classes">
<mkdir dir="${output.dir}"/>
<javac destdir="${output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memoryMaximumSize="${compiler.max.memory}" fork="true" includeantruntime="false">
<compilerarg line="${compiler.args}"/>
<classpath refid="classpath"/>
<src refid="sourcepath"/>
</javac>
</target>
<target name="clean" description="cleanup module">
<delete dir="${output.dir}"/>
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
</target>
<target name="jar" depends="compile" description="create jar file">
<mkdir dir="${build.dir}"/>
<jar
destfile="${build.dir}/shared.jar"
basedir="${output.dir}"
includes="**/*.class"
excludes="**/org/werelate/test/*.class"
/>
</target>
<target name="dist" depends="jar" description="copy files to distribution locations">
<mkdir dir="${dist.dir}"/>
<mkdir dir="${dist.dir}/lib"/>
<copy todir="${dist.dir}/lib">
<fileset dir="${build.dir}"/>
</copy>
</target>
<target name="build" depends="clean, dist" description="build all"/>
</project>