-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
41 lines (34 loc) · 951 Bytes
/
build.xml
File metadata and controls
41 lines (34 loc) · 951 Bytes
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
<project>
<path id="3rd-party-classpath">
<fileset dir="lib">
<include name="*.jar" />
</fileset>
</path>
<target name="clean">
<delete dir="build"/>
</target>
<target name="compile">
<mkdir dir="build/classes"/>
<javac srcdir="src" destdir="build/classes">
<classpath refid="3rd-party-classpath" />
</javac>
</target>
<target name="jar">
<mkdir dir="build/jar"/>
<copy file="lib/core.jar" todir="build/jar/"/>
<jar destfile="build/jar/ProcessingGame.jar" basedir="build/classes">
<manifest>
<attribute name="Main-Class" value="ProcessingGame.src.MainWrapper"/>
<attribute name="Class-path" value="core.jar"/>
</manifest>
</jar>
</target>
<target name="run">
<java jar="build/jar/ProcessingGame.jar" fork="true"/>
</target>
<target name="build">
<antcall target="compile"/>
<antcall target="jar"/>
<antcall target="run"/>
</target>
</project>