-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.xml
More file actions
executable file
·87 lines (75 loc) · 2.55 KB
/
build.xml
File metadata and controls
executable file
·87 lines (75 loc) · 2.55 KB
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
82
83
84
85
86
87
<project name="Cuckoo Libraries" basedir="." default="build">
<description>
Build file for Cuckoo Libraries.
</description>
<property name="src" location="src" />
<property name="tmp" location="tmp" />
<property name="lib" location="lib" />
<property name="external" location="external" />
<path id="external_jars_server">
<fileset dir="${external}">
<include name="*.jar" />
</fileset>
<fileset dir="${external}/server-only">
<include name="*.jar" />
</fileset>
<fileset dir="${external}/android">
<include name="*.jar" />
</fileset>
</path>
<path id="external_jars_client">
<fileset dir="${external}">
<include name="*.jar" />
</fileset>
<fileset dir="${external}/client-only">
<include name="*.jar" />
</fileset>
<fileset dir="${external}/android">
<include name="*.jar" />
</fileset>
</path>
<target name="build" depends="clean" description="build the JARs and documentation">
<!-- Create the distribution end tmp directory -->
<mkdir dir="${lib}/client" />
<mkdir dir="${lib}/server" />
<mkdir dir="${tmp}" />
<mkdir dir="${tmp}/client" />
<mkdir dir="${tmp}/server" />
<!-- Compile the java code from ${src} into ${tmp} -->
<javac debug="on" destdir="${tmp}/server" includeantruntime="false" source="1.6" srcdir="${src}" target="1.6" includes="**" excludes="**/client/**,**/obsolete/**">
<classpath refid="external_jars_server" />
</javac>
<javac debug="on" destdir="${tmp}/client" includeantruntime="false" source="1.6" srcdir="${src}" target="1.6" includes="**" excludes="**/swan/**/Remote**,**/server/**,**/obsolete/**">
<classpath refid="external_jars_client" />
</javac>
<jar basedir="${tmp}/client" includes="**" excludes="**/server/**" jarfile="${lib}/client/cuckoo-client.jar">
</jar>
<jar basedir="${tmp}/server" includes="**" excludes="**/client/**" jarfile="${lib}/server/cuckoo-server.jar">
</jar>
<!-- Copy external libraries to lib directory -->
<delete dir="${tmp}" />
<copy todir="${lib}/client">
<fileset dir="${external}">
<include name="*.jar" />
</fileset>
<fileset dir="${external}/client-only">
<include name="*.jar" />
</fileset>
</copy>
<copy todir="${lib}/server">
<fileset dir="${external}">
<include name="*.jar" />
</fileset>
<fileset dir="${external}/server-only">
<include name="*.jar" />
</fileset>
<fileset dir="${external}/android">
<include name="*.jar" />
</fileset>
</copy>
</target>
<target name="clean" description="clean up">
<delete dir="${tmp}" />
<delete dir="${lib}" />
</target>
</project>