-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
105 lines (86 loc) · 2.89 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<project name="DNS Relay" default="Dist" basedir=".">
<!-- Get the build time -->
<tstamp>
<format property="build.timestamp" pattern="MMM dd, yyyy hh:mm:ss a"/>
</tstamp>
<property name="build.home" value="."></property>
<property name="build.dist" value="dist"></property>
<property name="build.classes" value="classes"></property>
<path id="slf4j.classpath">
<fileset dir="${build.home}/lib/">
<include name="slf4j-api-1.7.7.jar" />
</fileset>
</path>
<path id="akka.classpath">
<fileset dir="${build.home}/lib/">
<include name="akka*.jar" />
<include name="config*.jar" />
<include name="scala*.jar" />
</fileset>
</path>
<path id="netty.classpath">
<fileset dir="${build.home}/lib/">
<include name="netty*.jar" />
</fileset>
</path>
<target name="clean">
<delete dir="${build.classes}"/>
<delete dir="${build.dist}"/>
<mkdir dir="${build.classes}"/>
<mkdir dir="${build.dist}"/>
</target>
<target name="Message" depends="clean">
<javac srcdir="Message/src"
encoding="UTF-8"
destdir="${build.classes}/"
debug="on">
</javac>
</target>
<target name="RSA" depends="clean,Message">
<javac srcdir="RSA/src"
encoding="UTF-8"
destdir="${build.classes}/"
debug="on">
<classpath refid="slf4j.classpath"/>
</javac>
</target>
<target name="Client" depends="RSA">
<javac srcdir="Client/src"
encoding="UTF-8"
destdir="${build.classes}/"
debug="on">
<classpath refid="slf4j.classpath"/>
<classpath refid="akka.classpath"/>
<classpath refid="netty.classpath"/>
</javac>
</target>
<target name="Server" depends="Client">
<javac srcdir="Server/src"
encoding="UTF-8"
destdir="${build.classes}/"
debug="on">
<classpath refid="slf4j.classpath"/>
<classpath refid="akka.classpath"/>
<classpath refid="netty.classpath"/>
</javac>
</target>
<target name="Dist" depends="Debug">
<jar destfile="${build.dist}/dnsRelay.jar"
basedir="${build.classes}"
includes="org/**">
</jar>
<copy todir="${build.dist}">
<fileset dir="${build.home}/lib/">
<include name="*.jar" />
</fileset>
</copy>
<copy todir="${build.dist}">
<fileset dir=".">
<include name="*.key" />
<include name="Server/src/logback.xml" />
</fileset>
</copy>
</target>
<target name="Debug" depends="clean,Message,RSA,Client,Server">
</target>
</project>