-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
57 lines (53 loc) · 2.08 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="dshell" default="jar">
<!-- directory / file definition -->
<property name="dshell_source_dir" value="src" />
<property name="build_dir" value="build" />
<property name="libbun_jar" value="ext/libbun/libbun-0.1.jar" />
<property name="dshell_jar" value="dshell.jar" />
<!-- ================================== -->
<!-- PRE-BUILD -->
<!-- ================================== -->
<target name="pre-build">
<ant antfile="build.xml" dir="ext/libbun/" target="jar" />
</target>
<!-- ================================== -->
<!-- BUILD -->
<!-- ================================== -->
<target name="build" depends="pre-build">
<mkdir dir="${build_dir}" />
<javac srcdir="${dshell_source_dir}" destdir="${build_dir}" debug="on" target="1.7" source="1.7" includeantruntime="false">
<classpath path="${libbun_jar}" />
<classpath path="ext/jna-4.0.0.jar" />
<classpath path="ext/log4j-1.2.17.jar" />
<classpath path="ext/commons-codec-1.9.jar" />
<include name="**/*.java" />
<compilerarg value="-Xlint:deprecation" />
<compilerarg value="-Xlint:unchecked" />
</javac>
</target>
<!-- ================================== -->
<!-- GENERATE JAR -->
<!-- ================================== -->
<target name="jar" depends="build">
<jar jarfile="${dshell_jar}">
<fileset dir="${build_dir}" includes="**/*.class" />
<fileset dir="." includes="lib/jvm/*" />
<exclude name="**/*Test.class" />
<manifest>
<attribute name="Main-Class" value="dshell.internal.main.DShell" />
</manifest>
<zipfileset src="${libbun_jar}" />
<zipfileset src="ext/jna-4.0.0.jar" />
<zipfileset src="ext/log4j-1.2.17.jar" />
<zipfileset src="ext/commons-codec-1.9.jar" />
</jar>
</target>
<!-- ================================== -->
<!-- CLEAN -->
<!-- ================================== -->
<target name="clean">
<ant antfile="build.xml" dir="ext/libbun/" target="clean" />
<delete dir="${build_dir}"/>
<delete file="${dshell_jar}" />
</target>
</project>