-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
51 lines (51 loc) · 2.06 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
<?xml version="1.0"?>
<project name="ROP-Game" default="compile">
<target name="compile-desktop" depends="compile" description="compile the desktop version of the game">
<mkdir dir="classes"/>
<javac srcdir="rop-game-desktop/src" destdir="classes">
<classpath>
<pathelement path="${classpath}"/>
<fileset dir="rop-game/libs">
<include name="**/*.jar"/>
<exclude name="**/*source*"/>
</fileset>
<fileset dir="rop-game-desktop/libs">
<include name="**/*.jar"/>
<exclude name="**/*source*"/>
</fileset>
</classpath>
</javac>
</target>
<target name="compile" description="compile the base files used across all versions">
<mkdir dir="classes"/>
<javac srcdir="rop-game/src" destdir="classes">
<classpath>
<pathelement path="${classpath}"/>
<fileset dir="rop-game/libs">
<include name="**/*.jar"/>
<exclude name="**/*source*"/>
</fileset>
</classpath>
</javac>
</target>
<target name="clean" description="cleans class files">
<delete dir="classes"/>
</target>
<target name="run-desktop" depends="compile-desktop" description="runs the desktop version">
<java classname="com.kandl.ropgame.Main" fork="true" spawn="true">
<classpath>
<pathelement path="${classpath}"/>
<pathelement location="classes"/>
<pathelement location="rop-game-android/assets"/>
<fileset dir="rop-game/libs">
<include name="**/*.jar"/>
<exclude name="**/*source*"/>
</fileset>
<fileset dir="rop-game-desktop/libs">
<include name="**/*.jar"/>
<exclude name="**/*source*"/>
</fileset>
</classpath>
</java>
</target>
</project>