forked from DeuceSTM/DeuceSTM
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
101 lines (94 loc) · 3.61 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
<?xml version="1.0"?>
<project name="DeuceSTMTwilight" default="agent-jar" basedir=".">
<target name="agent-jar" depends="compile-source">
<jar destfile="bin/deuceAgent.jar">
<fileset dir="bin/classes"/>
<manifest>
<attribute name="Implementation-Vendor" value="deuce.org" />
<attribute name="Implementation-Version" value="1.4"/>
<attribute name="Premain-Class" value="org.deuce.transform.Agent" />
<attribute name="Main-Class" value="org.deuce.transform.Agent"/>
<attribute name="Can-Redefine-Classes" value="true"/>
<attribute name="Can-Retransform-Classes" value="true"/>
<attribute name="Compatible" value="1.6"/>
</manifest>
</jar>
</target>
<target name="tests-jar" depends="compile-tests">
<jar destfile="bin/deuceTests.jar">
<fileset dir="bin/tests"/>
<manifest>
<attribute name="Implementation-Vendor" value="deuce.org" />
<attribute name="Implementation-Version" value="1.4"/>
<attribute name="Compatible" value="1.6"/>
</manifest>
</jar>
</target>
<target name="Tests" depends="agent-jar,tests-jar">
<antcall target="junits">
<param name="sysprop" value="org.deuce.transaction.contextClass"/>
<param name="value" value="org.deuce.transaction.norec.Context"/>
<param name="exclude" value="org/deuce/utest/basic/IrrevocableContextTest.class"/>
</antcall>
<antcall target="junits">
<param name="sysprop" value="org.deuce.transaction.contextClass"/>
<param name="value" value="org.deuce.transaction.tl2.Context"/>
<param name="exclude" value=""/>
</antcall>
<antcall target="junits">
<param name="sysprop" value="org.deuce.transaction.contextClass"/>
<param name="value" value="org.deuce.transaction.tl2cm.Context"/>
<param name="exclude" value="org/deuce/utest/basic/IrrevocableContextTest.class"/>
</antcall>
<antcall target="junits">
<param name="sysprop" value="org.deuce.transaction.contextClass"/>
<param name="value" value="org.deuce.transaction.lsa.Context"/>
<param name="exclude" value="org/deuce/utest/basic/IrrevocableContextTest.class"/>
</antcall>
<antcall target="junits">
<param name="sysprop" value="org.deuce.transaction.contextClass"/>
<param name="value" value="org.deuce.transaction.tl2twilight.Context"/>
<param name="exclude" value=""/> <!-- unsure about this one -->
</antcall>
<antcall target="junits">
<param name="sysprop" value="org.deuce.transaction.global"/>
<param name="value" value="true"/>
<param name="exclude" value="org/deuce/**"/>
</antcall>
</target>
<target name="junits">
<mkdir dir="bin/junit"/>
<echo message="Test ${sysprop}=${value}"/>
<junit fork="yes">
<jvmarg value="-javaagent:${basedir}/bin/deuceAgent.jar"/>
<sysproperty key="${sysprop}" value="${value}"/>
<formatter type="xml"/>
<formatter type="brief" usefile="false"/>
<classpath path="${basedir}/lib/junit.jar:${basedir}/bin/tests"/>
<batchTest todir="${basedir}/bin/junit">
<fileset dir="${basedir}/bin/tests"
includes="org/deuce/utest/**/*Test.class"
excludes="org/deuce/utest/basic/StaticFieldInheritanceTest.class,${exclude}"/>
</batchTest>
</junit>
</target>
<target name="compile-source">
<mkdir dir="bin/classes"/>
<javac fork="true" srcdir="src" source="1.6" target="1.6"
destdir="bin/classes"
includes="java/**"
excludes="test/**"
debug="true"
/>
</target>
<target name="compile-tests" depends="compile-source">
<mkdir dir="bin/tests"/>
<javac fork="true" srcdir="src" source="1.6" target="1.6"
destdir="bin/tests"
classpath="bin/classes;lib/junit.jar"
includes="test/**"
excludes="java/**"
debug="true"
/>
</target>
</project>