-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.xml
64 lines (57 loc) · 1.59 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
<project basedir="." default="build" name="AndroAR">
<property name="target" value="1.6"/>
<property name="source" value="1.6"/>
<property name="debuglevel" value="source,lines,vars"/>
<path id="libs">
<fileset dir="lib">
<include name="**/*.jar"/>
<include name="**/*.zip"/>
</fileset>
</path>
<target name="clean">
<delete dir="AndroARComm/classes"/>
<delete dir="AndroARServer/classes"/>
<delete dir="dist"/>
</target>
<target name="init" depends="clean">
<mkdir dir="dist"/>
<mkdir dir="AndroARComm/classes"/>
<mkdir dir="AndroARServer/classes"/>
</target>
<target name="build" depends="init">
<javac
srcdir="AndroARComm/src"
destdir="AndroARComm/classes"
source="${source}"
target="${target}"
debuglevel="${debuglevel}">
<classpath refid="libs"/>
</javac>
<jar basedir="AndroARComm/classes" file="dist/androar-comm.jar"/>
<javac
srcdir="AndroARServer/src"
destdir="AndroARServer/classes"
source="${source}"
target="${target}"
debuglevel="${debuglevel}">
<classpath refid="libs"/>
<classpath>
<pathelement location="AndroARComm/classes"/>
</classpath>
</javac>
<jar basedir="AndroARServer/classes" file="dist/androar-server.jar">
<manifest>
<attribute name="Main-Class" value="com.androar.AndroARServer" />
</manifest>
</jar>
</target>
<target name="run-server">
<java classname="com.androar.AndroARServer" fork="true">
<arg value="-v"/>
<classpath>
<pathelement location="dist/androar-server.jar"/>
<pathelement location="dist/androar-comm.jar"/>
</classpath>
</java>
</target>
</project>