-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
53 lines (43 loc) · 1.35 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
<project name="javaskipbo" default="build-game" basedir=".">
<path id="classpath">
<fileset dir="lib" includes="*.jar"/>
</path>
<target name="build-game">
<delete dir="BUILD"/>
<mkdir dir="BUILD"/>
<mkdir dir="BUILD/classes"/>
<javac debug="true" srcdir="src" destdir="BUILD/classes" target="1.6" source="1.6" classpathref="classpath">
<classpath>
<pathelement path="lib/slick.jar"/>
<pathelement path="lib/lwjgl.jar"/>
<pathelement path="lib/lwjgl_util.jar"/>
<pathelement path="lib/jinput.jar"/>
</classpath>
</javac>
<jar destfile="BUILD/javaskipbo.jar" basedir="BUILD/classes">
<manifest>
<attribute name="Main-Class" value="mist2meat.javaskipbo.Main"/>
<attribute name="Class-Path" value="lib/lwjgl.jar lib/lwjgl_util.jar lib/jinput.jar lib/slick.jar"/>
</manifest>
</jar>
<delete dir="BUILD/classes"/>
<copy todir="BUILD">
<fileset dir=".">
<include name="gfx/**"/>
<include name="lib/**"/>
<include name="sfx/**"/>
</fileset>
</copy>
<echo file="BUILD/run_with_console.bat" append="false">
@ECHO OFF
TITLE Java-SkipBo Console
java -jar javaskipbo.jar
pause
</echo>
<zip destfile="BUILD/javaskipbo-build.zip">
<fileset dir=".">
<include name="BUILD/**"/>
</fileset>
</zip>
</target>
</project>