-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.xml
42 lines (34 loc) · 1.23 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="libGDXPathEditor" basedir="." default="makejar">
<property name="src.dir" value="src" />
<property name="bin.dir" value="bin" />
<property name="lib.dir" value="libs" />
<property name="res.dir" value="data" />
<property name="jar.dir" value="jar" />
<property name="main-class" value="com.steelkiwi.patheditor.EditorMain" />
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar" />
</path>
<target name="clean">
<delete dir="${bin.dir}" />
</target>
<target name="compile" depends="clean">
<mkdir dir="${bin.dir}" />
<javac srcdir="${src.dir}" destdir="${bin.dir}"
includeantruntime="false" classpathref="classpath" />
</target>
<target name="makejar" depends="compile">
<mkdir dir="${jar.dir}" />
<jar destfile="${jar.dir}/libGDX-path-editor.jar" basedir="${bin.dir}">
<zipgroupfileset dir="${lib.dir}" includes="*.jar" />
<fileset dir="${res.dir}" />
<manifest>
<attribute name="Class-Path" value="${lib.dir}/*.jar" />
<attribute name="Main-Class" value="${main-class}" />
</manifest>
</jar>
</target>
<target name="run" depends="makejar">
<java jar="${jar.dir}/libGDX-path-editor.jar" fork="true" />
</target>
</project>