-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
84 lines (76 loc) · 2.75 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version="1.0"?>
<project name="AEminium Runtime" default="compile">
<property name="compiler" value="javac1.8" />
<property name="ant.build.javac.target" value="1.8" />
<property name="org.apache.tools.ant.taskdefs.compilers.CompilerAdapter" value="javac1.8" />
<property name="src.dir" value="src"/>
<property name="build.dir" value="bin"/>
<property name="dist.dir" value="dist"/>
<property name="lib.dir" value="lib"/>
<path id="rt.classpath">
<pathelement path="${build.dir}/" />
<pathelement path="${lib.dir}/junit-4.8.2.jar" />
<pathelement path="${lib.dir}/api.jar" /><!-- JProfiler -->
<pathelement path="${lib.dir}/apisrc.jar" /><!-- JProfiler -->
<pathelement path="${lib.dir}/javasysmon-0.3.4.jar" /><!-- SysMon -->
</path>
<path id="rt.classpath.debug">
<pathelement path="${build.dir}/" />
<pathelement path="${lib.dir}/junit-4.8.2.jar" />
</path>
<target name="clean">
<echo message="In clean "/>
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
<delete verbose="yes">
<fileset dir=".">
<include name="TEST*"/>
</fileset>
</delete>
</target>
<target name="compile">
<mkdir dir="${build.dir}" />
<javac srcdir="${src.dir}" destdir="${build.dir}" fork="false">
<classpath refid="rt.classpath"/>
</javac>
</target>
<target name="tests" depends="compile">
<junit fork="yes" dir="${src.dir}/aeminium/runtime/tests" printsummary="yes">
<classpath refid="rt.classpath.debug"/>
<formatter type="brief"/>
<batchtest>
<fileset dir="${src.dir}/">
<include name="aeminium/runtime/tests/*.java"/>
<exclude name="aeminium/runtime/tests/BaseTest.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="jar-debug" depends="compile">
<jar destfile="${dist.dir}/AeminiumRuntimeDebug.jar">
<fileset dir="${build.dir}/"/>
<fileset dir="${src.dir}/"/>
<zipfileset includes="**/*.class" src="${lib.dir}/junit-4.8.2.jar"/>
<manifest>
<!-- Who is building this jar? -->
<attribute name="Built-By" value="${user.name}"/>
<!-- Information about the program itself -->
<attribute name="Implementation-Vendor" value="Aeminium Project"/>
<attribute name="Implementation-Title" value="Aeminium Runtime"/>
</manifest>
</jar>
</target>
<target name="jar" depends="compile">
<jar destfile="${dist.dir}/AeminiumRuntime.jar">
<fileset dir="${build.dir}/" />
<fileset dir="${src.dir}" />
<manifest>
<!-- Who is building this jar? -->
<attribute name="Built-By" value="${user.name}"/>
<!-- Information about the program itself -->
<attribute name="Implementation-Vendor" value="Aeminium Project"/>
<attribute name="Implementation-Title" value="Aeminium Runtime"/>
</manifest>
</jar>
</target>
</project>