This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
build-common-java.xml
81 lines (72 loc) · 1.74 KB
/
build-common-java.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?xml version="1.0"?>
<project name="build-common-java" xmlns:antelope="antlib:ise.antelope.tasks">
<import file="build-common.xml" />
<target name="clean">
<delete dir="classes" />
<delete file="${jar.file}.jar" failonerror="false" />
</target>
<target name="compile">
<mkdir dir="classes" />
<copy todir="classes">
<fileset dir="src" excludes="**/*.java" />
</copy>
<if>
<equals arg1="${javac.compiler}" arg2="modern" />
<then>
<javac
classpathref="project.classpath"
compiler="${javac.compiler}"
debug="${javac.debug}"
deprecation="${javac.deprecation}"
destdir="classes"
fork="${javac.fork}"
includeAntRuntime="false"
memoryMaximumSize="${javac.memoryMaximumSize}"
nowarn="${javac.nowarn}"
source="1.7"
srcdir="src"
/>
</then>
<else>
<javac
classpathref="project.classpath"
compiler="${javac.compiler}"
debug="${javac.debug}"
deprecation="${javac.deprecation}"
destdir="classes"
includeAntRuntime="false"
nowarn="${javac.nowarn}"
source="1.5"
srcdir="src"
/>
</else>
</if>
</target>
<target name="compile-test">
<mkdir dir="test-classes/unit" />
<javac
classpathref="project.classpath"
compiler="${javac.compiler}"
debug="${javac.debug}"
deprecation="${javac.deprecation}"
destdir="test-classes/unit"
includeAntRuntime="false"
nowarn="${javac.nowarn}"
srcdir="test/unit"
/>
</target>
<target name="deploy" depends="jar">
<copy todir="${project.dir}/alloy-web/docroot/WEB-INF/lib">
<fileset
dir="."
includes="${jar.file}.jar"
/>
</copy>
</target>
<target name="jar" depends="compile">
<jar
basedir="classes"
jarfile="${jar.file}.jar"
/>
</target>
</project>