-
Notifications
You must be signed in to change notification settings - Fork 93
/
build.xml
67 lines (56 loc) · 2.69 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
66
67
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="build" name="Shared">
<property environment="env"/>
<property name="PacoTest.location" value="PacoTest"/>
<property name="Paco.location" value="Paco"/>
<property name="Paco-Server.location" value="Paco-Server"/>
<property name="Shared.location" value="Shared"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.7"/>
<property name="source" value="1.7"/>
<path id="Shared.classpath">
<pathelement location="bin"/>
</path>
<target name="clean">
<ant antfile="build.xml" dir="${Shared.location}" inheritAll="false" target="clean"/>
<ant antfile="build.xml" dir="${PacoTest.location}" inheritAll="false" target="clean"/>
<ant antfile="build.xml" dir="${Paco.location}" inheritAll="false" target="clean"/>
<ant antfile="antbuild.xml" dir="${Paco-Server.location}" inheritAll="false" target="clean"/>
</target>
<target name="build-shared">
<subant target="build">
<fileset dir="${Shared.location}" includes="build.xml"/>
</subant>
</target>
<target name="build-android">
<subant target="debug">
<fileset dir="${Paco.location}" includes="build.xml"/>
</subant>
</target>
<target name="build-android-test">
<subant target="debug">
<fileset dir="${PacoTest.location}" includes="build.xml"/>
</subant>
</target>
<target name="build-server">
<subant target="build">
<fileset dir="${Paco-Server.location}" includes="antbuild.xml"/>
</subant>
</target>
<target description="copy shared.jar to Paco and Paco-Server" name="copy-shared" depends="build-shared">
<copy file="${Shared.location}/dist/shared.jar"
todir="${Paco.location}/libs" />
<copy file="${Shared.location}/lib/js.jar"
todir="${Paco.location}/libs" />
<copy file="${Shared.location}/lib/js.jar" todir="${PacoTest.location}/libs" />
<copy file="${Shared.location}/dist/shared.jar" todir="${Paco-Server.location}/ear/default/WEB-INF/lib" />
</target>
<target description="Run tests in all projects." name="test">
<ant antfile="build.xml" dir="${Shared.location}" inheritAll="false" target="test"/>
<ant antfile="build.xml" dir="${PacoTest.location}" inheritAll="false" target="emutest"/>
<!-- <ant antfile="build.xml" dir="${PacoTest.location}" inheritAll="false" target="javatest"/> -->
<ant antfile="antbuild.xml" dir="${Paco-Server.location}" inheritAll="false" target="test"/>
</target>
<target description="Build all projects." name="build" depends="copy-shared,build-android,build-android-test,build-server">
</target>
</project>