-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
120 lines (99 loc) · 3.79 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<project
name="DFA Inference"
default="build"
basedir=".">
<description>
Ibis Dfa inference satin application build
</description>
<property name="satinc-flags" value="-keep"/>
<property name="satin-so-classes" value="sample.Samples iterativeDeepening.ControlResultPairTable"/>
<property name="satin-spawn-classes" value="DfaInference.SatinFolder iterativeDeepening.BestBlue iterativeDeepening.BestBlueMW DfaInference.SatinRunner"/>
<property name="satin-classes.value" value="-syncrewriter "${satin-spawn-classes}" -satin "${satin-spawn-classes} ${satin-so-classes}""/>
<property environment="env"/>
<property name="myclasspath" value="${env.CLASSPATH}"/>
<property name="tmp" value="tmp"/>
<property name="lib" value="lib"/>
<basename file="." property="application-name" />
<target name="set-classpath" unless="classpath.initialized">
<path id="default.classpath">
<pathelement path="${tmp}"/>
<pathelement path="${user-classpath}"/>
<pathelement path="${myclasspath}"/>
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</path>
<echo message="Now set default.classpath to ${default.classpath}"
level="verbose"/>
<property name="classpath.initialized" value="true"/>
</target>
<target name="property-init"
depends="set-classpath">
</target>
<target name="init" depends="property-init">
<tstamp />
<mkdir dir="${tmp}" />
<mkdir dir="${lib}" />
</target>
<target name="compile" depends="clean,init,copy-included-satin"
description="Compile application without any bytecode rewriting">
<javac destdir="${tmp}" debug="true" srcdir="src">
<classpath refid="default.classpath" />
<!--
<compilerarg value="-Xlint:unchecked"/>
-->
<include name="**/*.java" />
</javac>
</target>
<target name="satin">
<java classname="ibis.compile.Ibisc"
taskname="Ibisc"
dir="${tmp}"
failonerror="true"
maxmemory="512M"
fork="true">
<arg line="${satinc-flags} ${satin-classes.value} ."/>
<classpath refid="default.classpath"/>
</java>
</target>
<!-- copy external dependancies to lib, including provided Satin -->
<target name="copy-included-satin">
<mkdir dir="${lib}" />
<copy todir="${lib}">
<fileset dir="external"/>
</copy>
</target>
<target name="build"
description="Compile Satin application for parallel execution"
depends="jar"/>
<target name="jar" depends="compile,satin" description="Build a Jar file for an application">
<jar destfile="${lib}/${application-name}.jar" basedir="${tmp}" includes="**/*.class">
</jar>
<delete dir="${tmp}" />
</target>
<target name="compile-jar" depends="compile" description="Build a Jar file for an application">
<jar destfile="${lib}/${application-name}.jar" basedir="${tmp}" includes="**/*.class">
</jar>
<delete dir="${tmp}" />
</target>
<target name="clean" description="Clean up the build">
<delete dir="${tmp}" />
<delete dir="${lib}" />
</target>
<target name="test"
depends="compile"
description="Run Junit test">
<antcall target="runseq">
<param name="runjob" value="junit.textui.TestRunner main.Tests"/>
</antcall>
</target>
<target name="docs"
description="Build JavaDoc documentation in `docs' directory">
<!-- Create the javadoc directory -->
<delete dir="docs"/>
<mkdir dir="docs"/>
<javadoc destdir="docs" sourcepath="src" author="true" version="true" use="true" private="true" packagenames="DfaInference,AbbaDingo,generate" windowtitle="DFA Inference program documentation" doctitle="DFA Inference program Documentation" bottom="DFA INFERENCE">
<classpath refid="default.classpath"/>
</javadoc>
</target>
</project>