-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
63 lines (52 loc) · 1.89 KB
/
build.xml
File metadata and controls
63 lines (52 loc) · 1.89 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
<project default="compile">
<property name="srcpath" value="src"/>
<property name="buildpath" value="${basedir}/build"/>
<property name="classpath" value="${buildpath}/classes"/>
<property name="debugpath" value="${buildpath}/debug"/>
<property name="jarpath" value="${buildpath}/jar"/>
<property name="jarfile" value="dashboard.jar"/>
<property name="build.sysclasspath" value="ignore"/>
<target name="clean">
<delete dir="${buildpath}"/>
</target>
<target name="submodules">
<ant antfile="preferences-java/build.xml" useNativeBasedir="true">
<target name="compile"/>
<target name="debug"/>
</ant>
</target>
<target name="compile" depends="submodules">
<mkdir dir="${classpath}"/>
<javac srcdir="${srcpath}" destdir="${classpath}">
</javac>
</target>
<target name="jar" depends="compile">
<mkdir dir="${jarpath}"/>
<delete file="${jarpath}/${jarfile}"/>
<jar destfile="${jarpath}/${jarfile}">
<fileset dir="${classpath}"/>
<fileset dir="res"/>
<manifest>
<attribute name="Main-Class" value="com.floorsix.dashboard.App"/>
</manifest>
</jar>
</target>
<target name="run" depends="jar">
<java jar="${jarpath}/${jarfile}" fork="true"/>
</target>
<target name="debug" depends="submodules">
<mkdir dir="${debugpath}"/>
<javac srcdir="${srcpath}" destdir="${debugpath}" debug="on" debuglevel="lines,vars,source"/>
<java classname="com.floorsix.dashboard.App" classpath="${debugpath}" fork="true">
<jvmarg value="-ea"/>
</java>
</target>
<target name="server">
<java classpath="${jarpath}/${jarfile}" classname="com.floorsix.dashboard.server.Server" fork="true"/>
</target>
<target name="client">
<java classpath="${jarpath}/${jarfile}" classname="com.floorsix.dashboard.client.Client" fork="true">
<arg value="${command}"/>
</java>
</target>
</project>