-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
49 lines (40 loc) · 1.26 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
<project name="blitespy" default="compile" basedir=".">
<property file="build.properties" />
<property name="src" location="src"/>
<property name="lib" location="lib"/>
<property name="jar" location="${lib}/blitespy.jar"/>
<property name="cls" location="classes"/>
<target name="init">
<mkdir dir="${cls}"/>
</target>
<!-- Development classpath -->
<path id="project.classpath">
<fileset dir="${lib}">
<exclude name="**/blitespy.jar"/>
</fileset>
</path>
<!-- Runtime classpath (manifest formatted) -->
<manifestclasspath property="jar.classpath" jarfile="${jar}">
<classpath>
<fileset dir="${lib}"/>
</classpath>
</manifestclasspath>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${cls}" source="11" target="11" debug="true" includeantruntime="false">
<classpath refid="project.classpath"/>
</javac>
</target>
<target name="clean">
<delete includeemptydirs="true">
<fileset dir="${cls}" includes="**/*"/>
</delete>
</target>
<target name="jar" depends="clean, compile">
<jar jarfile="${jar}">
<fileset dir="${cls}"/>
<manifest>
<attribute name="Class-Path" value="${jar.classpath}"/>
</manifest>
</jar>
</target>
</project>