-
Notifications
You must be signed in to change notification settings - Fork 39
/
build-common.xml
65 lines (51 loc) · 2.11 KB
/
build-common.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
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="build-common" default="compile">
<import file="dependencies.xml"/>
<property name="core-lib" location="${dependencies.basedir}/Core/WPISuite/WebContent/WEB-INF/lib"/>
<property name="junit-jar" location="${dependencies.basedir}/junit-4.8.2.jar"/>
<!-- build.xml files that import this one should override the following targets -->
<target name="clean" description="Deletes files created during the build">
<echo message="${ant.project.name} - build-common.clean - not implemented"/>
</target>
<target name="compile" description="Compiles source code">
<echo message="${ant.project.name} - build-common.compile - not implemented"/>
</target>
<target name="dist" depends="compile" description="Creates distributable">
<echo message="${ant.project.name} - build-common.dist - not implemented"/>
</target>
<target name="test" depends="compile" description="Runs tests">
<echo message="${ant.project.name} - build-common.test - no tests"/>
</target>
<!--
The following targets can be used in any build.xml that imports this file. Examples follow.
Compile the DefectTracker project and any dependencies:
$ cd DefectTracker
$ ant compile.deps
Only run DefectTracker's tests:
$ cd DefectTracker
$ ant test.single
-->
<target name="compile.deps"
description="Compiles source (includes dependencies)">
<antcall target="depend.${ant.project.name}">
<param name="dependency.target" value="compile"/>
</antcall>
</target>
<target name="clean.deps"
description="Deletes files created during the build (includes dependencies)">
<antcall target="depend.${ant.project.name}">
<param name="dependency.target" value="clean"/>
</antcall>
</target>
<target name="dist.deps"
description="Creates distributable (includes dependencies)">
<antcall target="depend.${ant.project.name}">
<param name="dependency.target" value="dist"/>
</antcall>
</target>
<target name="test.single" depends="compile.deps"
description="Runs tests for this single project">
<mkdir dir="${test-results}"/>
<antcall target="test"/>
</target>
</project>