-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
94 lines (84 loc) · 3.47 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
<?xml version="1.0"?>
<project name="Rally Rock Star Integration" default="dist" basedir=".">
<description>
Build file for Rally Rock Star Integration plugin
</description>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="test" location="test"/>
<property name="build" location="build"/>
<property name="build.src" location="build/src"/>
<property name="build.test" location="build/test"/>
<property name="dist" location="dist"/>
<property name="lib" location="lib"/>
<property name="reports" location="reports"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
<mkdir dir="${build.src}"/>
<mkdir dir="${build.test}"/>
<mkdir dir="${dist}"/>
<mkdir dir="${reports}"/>
<mkdir dir="${dist}/lib"/>
<path id="dependent.jar.classpath">
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>
</path>
<path id="rock.star.jar.classpath">
<path refid="dependent.jar.classpath"/>
<fileset dir="${dist}/lib">
<include name="**/*.jar"/>
</fileset>
<fileset dir=".">
<include name="**/*.properties"/>
</fileset>
</path>
</target>
<target name="compile" depends="clean,init" description="compile production source">
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build.src}" debug="true">
<classpath refid="dependent.jar.classpath"/>
</javac>
</target>
<target name="compile.test" depends="compile" description="compile test source">
<javac srcdir="${test}" destdir="${build.test}" debug="true">
<classpath>
<pathelement location="${build.src}" />
<path refid="dependent.jar.classpath" />
</classpath>
</javac>
</target>
<target name="dist" depends="test" description="generate the distribution">
<!-- Put everything in ${build.src} into the MyProject-${DSTAMP}.jar file -->
<jar jarfile="${dist}/lib/rally_rock_star_plugin.jar" basedir="${build.src}"/>
</target>
<target name="clean" description="clean up">
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
<target name="run" description="run job" depends="init">
<java classname="com.ideas.rally.RallyRockStarIntegration" fork="true" failonerror="true"
error="stderr_${DSTAMP}.log" output="stdout_${DSTAMP}.log" classpathref="rock.star.jar.classpath">
</java>
</target>
<target name="test" description="test run" depends="compile.test">
<junit printsummary="yes" haltonfailure="yes">
<classpath>
<pathelement location="${build.src}"/>
<pathelement location="${build.test}"/>
<path refid="dependent.jar.classpath"/>
</classpath>
<formatter type="plain"/>
<formatter type="xml"/>
<batchtest fork="once" todir="${reports}">
<fileset dir="${test}">
<include name="**/*Test.java"/>
</fileset>
</batchtest>
</junit>
</target>
</project>