forked from planestraveler/git-starteam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
71 lines (61 loc) · 2.82 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
<project name="git-starteam" default="jar" basedir=".">
<target name="init">
<property name="jargs.jar" value="${basedir}/lib/jargs.jar"/>
<property name="junit.jar" value="/usr/share/java/junit.jar:/usr/share/java/junit4.jar:${basedir}/lib/junit-4.12.jar"/>
<property name="starteam.jar" value="starteam110.jar"/>
<property name="hamcrest.jar" value="${basedir}/lib/hamcrest-core-1.3.jar:/usr/share/java/hamcrest/core.jar"/>
</target>
<target name="clean">
<delete dir="syncronizer/classes"/>
<delete dir="syncronizer/testclasses"/>
<delete dir="syncronizer/testreports"/>
<delete file="bin/syncronizer.jar"/>
</target>
<target name="compile" depends="init,fake-starteam">
<mkdir dir="syncronizer/classes"/>
<javac srcdir="syncronizer/src" destdir="syncronizer/classes"
deprecation="on" debug="on" extdirs="/usr/share/java"
includeAntRuntime="false"
classpath="${jargs.jar}:${starteam.jar}:fake-starteam/classes"/>
</target>
<target name="jar" depends="compile">
<jar jarfile="bin/syncronizer.jar" basedir="syncronizer/classes"
manifest="syncronizer.mf" />
</target>
<target name="fake-starteam" depends="init">
<mkdir dir="fake-starteam/classes"/>
<javac srcdir="fake-starteam/src" destdir="fake-starteam/classes"
deprecation="on" debug="on" extdirs="/usr/share/java"
includeAntRuntime="false"
classpath="${jargs.jar}"/>
<jar jarfile="bin/fake-starteam.jar" basedir="fake-starteam/classes"
manifest="fakestarteam.mf" />
</target>
<target name="test" depends="compile">
<mkdir dir="syncronizer/testclasses"/>
<mkdir dir="syncronizer/testreports"/>
<javac srcdir="syncronizer/test" destdir="syncronizer/testclasses"
deprecation="on" debug="on" extdirs="/usr/share/java:/usr/share/java/hamcrest"
includeAntRuntime="false"
classpath="syncronizer/classes:fake-starteam/classes:${jargs.jar}:${junit.jar}:${hamcrest.jar}"/>
<junit printsummary="yes" haltonfailure="no" haltonerror="no" showoutput="yes">
<classpath>
<pathelement location="syncronizer/testclasses"/>
<pathelement path="syncronizer/testclasses:syncronizer/classes:fake-starteam/classes:${jargs.jar}:${junit.jar}:${hamcrest.jar}"/>
</classpath>
<formatter type="plain"/>
<batchtest fork="yes" todir="syncronizer/testreports">
<fileset dir="syncronizer/test">
<include name="**/*Test*.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="package" depends="jar">
<zip destfile="git-starteam.zip">
<fileset dir="." includes="bin/syncronizer.jar" />
<zipfileset dir="/usr/share/java" includes="${jargs.jar}" prefix="3rdParty"/>
<fileset dir="." includes="README.md"/>
</zip>
</target>
</project>