-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.xml
executable file
·80 lines (72 loc) · 2.19 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="project" default="jar" basedir=".">
<!-- edit the following lines to your needs -->
<target name="init">
<property name="project_name" value="finmath-experiments"/>
<property name="srcDir" value="./src"/>
<property name="resourceDir" value="./resources"/>
<property name="testDir" value="./src"/>
<property name="classDir" value="./classes"/>
<property name="jar" value="${project_name}.jar"/>
<property name="reports.tests" value="./reports/tests" />
<property name="reports.html" value="./reports/html" />
<mkdir dir="${classDir}" />
</target>
<!-- compile -->
<target name="compile" depends="init">
<javac srcdir="${srcDir}"
includes="net/finmath/**/**/*.java"
source="1.8"
target="1.8"
destdir="${classDir}"
includeantruntime="false">
<classpath>
<fileset dir="lib">
<include name="**/*.jar" />
</fileset>
</classpath>
</javac>
</target>
<!-- create .jar -->
<target name="jar" depends="compile">
<jar jarfile="${jar}"
basedir="${classDir}"
includes="net/finmath/**">
<fileset dir="${resourceDir}">
<include name="*.*"/>
</fileset>
</jar>
</target>
<target name="junit" depends="jar">
<mkdir dir="${reports.tests}" />
<junit printsummary="true" failureproperty="junit.failure">
<jvmarg value="-XX:-UseSplitVerifier"/>
<jvmarg value="-Xmx512M"/>
<classpath>
<fileset dir="lib">
<include name="**/*.jar" />
</fileset>
<pathelement path="${classDir}" />
</classpath>
<batchtest fork="yes" todir="${reports.tests}">
<fileset dir="${testDir}">
<include name="**/*Test.java" />
</fileset>
</batchtest>
<formatter type="xml" />
</junit>
</target>
<target name="junitreport" depends="junit">
<junitreport todir="${reports.tests}">
<fileset dir="${reports.tests}">
<include name="TEST-*.xml" />
</fileset>
<report format="noframes" todir="${reports.html}" />
</junitreport>
</target>
<!-- removes all that has been built -->
<target name="clean" depends="init">
<delete dir="${classDir}" includeEmptyDirs="true" />
</target>
</project>
<!-- end file build.xml -->