forked from smarr/TruffleSOM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
70 lines (59 loc) · 2.66 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
<project name="som" basedir="." default="compile">
<property name="src.dir" value="src"/>
<property name="src_gen.dir" value="src_gen"/>
<property name="lib.dir" value="libs" />
<property name="build.dir" value="build"/>
<property name="classes.dir" value="${build.dir}/classes"/>
<property name="truffle.libs" value="http://soft.vub.ac.be/~smarr/downloads/truffle/latest"/>
<path id="project.classpath">
<pathelement location="${classes.dir}" />
<pathelement location="tests/" />
<pathelement location="${lib.dir}/truffle.jar" />
<pathelement location="${lib.dir}/junit-4.8.1.jar" />
</path>
<target name="clean">
<delete dir="${build.dir}"/>
<delete dir="${src_gen.dir}"/>
</target>
<target name="libs">
<mkdir dir="${lib.dir}" />
<get src="${truffle.libs}/truffle.jar" usetimestamp="true"
dest="${lib.dir}/truffle.jar"/>
<get src="http://search.maven.org/remotecontent?filepath=junit/junit/4.8.1/junit-4.8.1.jar" usetimestamp="true"
dest="${lib.dir}/junit-4.8.1.jar" />
</target>
<target name="compile" depends="libs">
<mkdir dir="${build.dir}"/>
<mkdir dir="${classes.dir}" />
<mkdir dir="${src_gen.dir}" />
<javac includeantruntime="false" srcdir="${src.dir}" destdir="${classes.dir}" debug="true">
<classpath refid="project.classpath" />
<compilerarg line="-s ${src_gen.dir}" />
</javac>
<javac includeantruntime="false" srcdir="${src_gen.dir}" destdir="${classes.dir}" debug="true">
<classpath refid="project.classpath" />
<compilerarg line="-s ${src_gen.dir}" />
</javac>
<javac includeantruntime="false" srcdir="tests/" destdir="${classes.dir}" debug="true">
<classpath refid="project.classpath" />
</javac>
</target>
<target name="jar" depends="compile">
<jar destfile="${build.dir}/som.jar" basedir="${classes.dir}"></jar>
</target>
<target name="test" depends="compile">
<junit haltonerror="false" haltonfailure="false">
<classpath refid="project.classpath" />
<batchtest fork="yes"><!-- todir="${reports.tests}" -->
<fileset dir="tests">
<include name="**/*Test*.java"/>
</fileset>
</batchtest>
</junit>
<java classname="som.vm.Universe" fork="true" failonerror="true">
<classpath refid="project.classpath" />
<arg line="-cp Smalltalk TestSuite/TestHarness.som" />
</java>
</target>
<target name="tests" depends="test" />
</project>