-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.xml
57 lines (48 loc) · 1.63 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
54
55
56
57
<project name="Kourami" basedir="." default="jar">
<property environment="env"/>
<property name="dir.src">src</property>
<property name="dir.build">build</property>
<property name="dir.build.classes">${dir.build}/classes</property>
<property name="Kourami.jar">${dir.build}/Kourami.jar</property>
<property name="external.lib.dir">exjars</property>
<property name="base.dir">.</property>
<path id="class.path">
<fileset dir="${external.lib.dir}">
<include name="*.jar"/>
</fileset>
</path>
<manifestclasspath property="lib.list" jarfile="${external.lib.dir}/${jar.file}">
<classpath refid="class.path" />
</manifestclasspath>
<target name="clean">
<delete dir="${dir.build}"/>
</target>
<target name="init">
<mkdir dir="${dir.build}"/>
<mkdir dir="${dir.build.classes}"/>
</target>
<target name="compile" depends="init">
<echo>Compiling Java source</echo>
<javac
debug="true"
debuglevel="lines,vars,source"
includeantruntime="false"
srcdir="${dir.src}"
destdir="${dir.build.classes}"
source="1.8"
target="1.8">
<classpath refid="class.path" />
</javac>
</target>
<target name="jar" depends="compile">
<echo>Making JAR file</echo>
<jar jarfile="${Kourami.jar}" basedir="${dir.build.classes}">
<manifest>
<attribute name="Main-Class" value="HLA"/>
</manifest>
<zipgroupfileset dir="${external.lib.dir}" includes="*.jar" />
<zipfileset dir="${base.dir}" includes="README.md" fullpath="README.md" />
<zipfileset dir="${base.dir}" includes="LICENSE" fullpath="LICENSE" />
</jar>
</target>
</project>