Mercurial > public > develkit
annotate bootstrap.xml @ 31:0cbc383e341b
TL-34: Handle case of missing coverage data file under sonar
author | smith@nwoca.org |
---|---|
date | Tue, 12 Apr 2011 16:49:39 -0400 |
parents | ad0a75e20f7b |
children | f8b0dde24622 |
rev | line source |
---|---|
1 | 1 <?xml version="1.0" encoding="UTF-8"?> |
5
9c847b8c7e9c
TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents:
4
diff
changeset
|
2 <project name="ssdt.bootstrap" basedir="." default="" xmlns:ssdt="http://www.ssdt-ohio.org/ant/common"> |
4 | 3 <echo message="invoking ssdt bootstrap" level="info"/> |
4 | |
5 <property file="${ssdt.devel.kit}/private.properties"/> | |
6 <property name="user.home.ant.lib" value="${user.home}/.ant/lib"/> | |
6
e779cd205e30
TL-32: Add default ivy settings and update fetch typedef.
smith@nwoca.org
parents:
5
diff
changeset
|
7 <property name="ssdt.devel.kit.src" value="http://hg.ssdt-ohio.org/browse/public/develkit"/> |
28
ad0a75e20f7b
TL-34: Allow sonar to publish failing tests (ant 1.8.1+)
smith@nwoca.org
parents:
18
diff
changeset
|
8 |
4 | 9 <mkdir dir="${ssdt.devel.kit}"/> |
10 <mkdir dir="${user.home.ant.lib}"/> | |
11 | |
5
9c847b8c7e9c
TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents:
4
diff
changeset
|
12 <macrodef name="import-ant" uri="http://www.ssdt-ohio.org/ant/common"> |
9c847b8c7e9c
TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents:
4
diff
changeset
|
13 <attribute name="file"/> |
9c847b8c7e9c
TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents:
4
diff
changeset
|
14 <sequential> |
9
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
8
diff
changeset
|
15 <ssdt:require-ant file="@{file}"/> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
8
diff
changeset
|
16 <import file="${ssdt.devel.kit}/@{file}"/> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
8
diff
changeset
|
17 </sequential> |
14
3cb1ff0297a8
TL-32: Add task for creating test properties.
smith@nwoca.org
parents:
12
diff
changeset
|
18 </macrodef> |
9
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
8
diff
changeset
|
19 |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
8
diff
changeset
|
20 <macrodef name="require-ant" uri="http://www.ssdt-ohio.org/ant/common"> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
8
diff
changeset
|
21 <attribute name="file"/> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
8
diff
changeset
|
22 <sequential> |
5
9c847b8c7e9c
TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents:
4
diff
changeset
|
23 <get dest="${ssdt.devel.kit}/@{file}" |
14
3cb1ff0297a8
TL-32: Add task for creating test properties.
smith@nwoca.org
parents:
12
diff
changeset
|
24 src="${ssdt.devel.kit.src}/@{file}" |
3cb1ff0297a8
TL-32: Add task for creating test properties.
smith@nwoca.org
parents:
12
diff
changeset
|
25 usetimestamp="true" verbose="false" ignoreerrors="true" /> |
5
9c847b8c7e9c
TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents:
4
diff
changeset
|
26 </sequential> |
9
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
8
diff
changeset
|
27 </macrodef> |
4 | 28 |
6
e779cd205e30
TL-32: Add default ivy settings and update fetch typedef.
smith@nwoca.org
parents:
5
diff
changeset
|
29 <macrodef name="fetch" uri="http://www.ssdt-ohio.org/ant/common"> |
5
9c847b8c7e9c
TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents:
4
diff
changeset
|
30 <attribute name="dest" default="${user.home.ant.lib}"/> |
9c847b8c7e9c
TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents:
4
diff
changeset
|
31 <attribute name="src"/> |
9c847b8c7e9c
TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents:
4
diff
changeset
|
32 <sequential> |
9c847b8c7e9c
TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents:
4
diff
changeset
|
33 <get dest="@{dest}" |
14
3cb1ff0297a8
TL-32: Add task for creating test properties.
smith@nwoca.org
parents:
12
diff
changeset
|
34 src="@{src}" |
3cb1ff0297a8
TL-32: Add task for creating test properties.
smith@nwoca.org
parents:
12
diff
changeset
|
35 usetimestamp="true" verbose="false" ignoreerrors="true"/> |
3cb1ff0297a8
TL-32: Add task for creating test properties.
smith@nwoca.org
parents:
12
diff
changeset
|
36 </sequential> |
3cb1ff0297a8
TL-32: Add task for creating test properties.
smith@nwoca.org
parents:
12
diff
changeset
|
37 </macrodef> |
3cb1ff0297a8
TL-32: Add task for creating test properties.
smith@nwoca.org
parents:
12
diff
changeset
|
38 |
17
fc114dab4c50
TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents:
14
diff
changeset
|
39 <macrodef name="properties" |
14
3cb1ff0297a8
TL-32: Add task for creating test properties.
smith@nwoca.org
parents:
12
diff
changeset
|
40 description="Creates test properties file from ant properties." |
3cb1ff0297a8
TL-32: Add task for creating test properties.
smith@nwoca.org
parents:
12
diff
changeset
|
41 uri="http://www.ssdt-ohio.org/ant/common"> |
17
fc114dab4c50
TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents:
14
diff
changeset
|
42 <attribute name="dir" description="Target directory"/> |
14
3cb1ff0297a8
TL-32: Add task for creating test properties.
smith@nwoca.org
parents:
12
diff
changeset
|
43 <attribute name="file" description="Target properties file" default="@{prefix}.properties"/> |
3cb1ff0297a8
TL-32: Add task for creating test properties.
smith@nwoca.org
parents:
12
diff
changeset
|
44 <attribute name="prefix" description="Prefix of properties to save to new file"/> |
3cb1ff0297a8
TL-32: Add task for creating test properties.
smith@nwoca.org
parents:
12
diff
changeset
|
45 <sequential> |
17
fc114dab4c50
TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents:
14
diff
changeset
|
46 <mkdir dir="@{dir}"/> |
fc114dab4c50
TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents:
14
diff
changeset
|
47 <echoproperties destfile="@{dir}/@{file}"> |
14
3cb1ff0297a8
TL-32: Add task for creating test properties.
smith@nwoca.org
parents:
12
diff
changeset
|
48 <propertyset> |
3cb1ff0297a8
TL-32: Add task for creating test properties.
smith@nwoca.org
parents:
12
diff
changeset
|
49 <propertyref prefix="@{prefix}."/> |
3cb1ff0297a8
TL-32: Add task for creating test properties.
smith@nwoca.org
parents:
12
diff
changeset
|
50 <mapper type="glob" from="@{prefix}.*" to="*"/> |
3cb1ff0297a8
TL-32: Add task for creating test properties.
smith@nwoca.org
parents:
12
diff
changeset
|
51 </propertyset> |
3cb1ff0297a8
TL-32: Add task for creating test properties.
smith@nwoca.org
parents:
12
diff
changeset
|
52 </echoproperties> |
5
9c847b8c7e9c
TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents:
4
diff
changeset
|
53 </sequential> |
9c847b8c7e9c
TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents:
4
diff
changeset
|
54 </macrodef> |
4 | 55 |
17
fc114dab4c50
TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents:
14
diff
changeset
|
56 <macrodef name="test-properties" |
fc114dab4c50
TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents:
14
diff
changeset
|
57 description="Creates test properties file from ant properties." |
fc114dab4c50
TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents:
14
diff
changeset
|
58 uri="http://www.ssdt-ohio.org/ant/common"> |
fc114dab4c50
TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents:
14
diff
changeset
|
59 <attribute name="file" description="Target properties file" default="@{prefix}.properties"/> |
fc114dab4c50
TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents:
14
diff
changeset
|
60 <attribute name="prefix" description="Prefix of properties to save to new file"/> |
fc114dab4c50
TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents:
14
diff
changeset
|
61 <sequential> |
fc114dab4c50
TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents:
14
diff
changeset
|
62 <ssdt:properties dir="${build.test.classes.dir}" file="@{file}" prefix="@{prefix}"/> |
fc114dab4c50
TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents:
14
diff
changeset
|
63 </sequential> |
fc114dab4c50
TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents:
14
diff
changeset
|
64 </macrodef> |
fc114dab4c50
TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents:
14
diff
changeset
|
65 |
5
9c847b8c7e9c
TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents:
4
diff
changeset
|
66 <ssdt:import-ant file="antcontrib-ant.xml"/> |
9c847b8c7e9c
TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents:
4
diff
changeset
|
67 <ssdt:import-ant file="ssdt-common-build.xml"/> |
12
9358041972c0
TL-32: Add netbean's copylib task jar and script to acquire it.
smith@nwoca.org
parents:
9
diff
changeset
|
68 <ssdt:import-ant file="netbeans-ant.xml"/> |
28
ad0a75e20f7b
TL-34: Allow sonar to publish failing tests (ant 1.8.1+)
smith@nwoca.org
parents:
18
diff
changeset
|
69 |
ad0a75e20f7b
TL-34: Allow sonar to publish failing tests (ant 1.8.1+)
smith@nwoca.org
parents:
18
diff
changeset
|
70 <macrodef name="add-dependency" |
ad0a75e20f7b
TL-34: Allow sonar to publish failing tests (ant 1.8.1+)
smith@nwoca.org
parents:
18
diff
changeset
|
71 description="Dynamically adds a new dependencty into an existing target." |
ad0a75e20f7b
TL-34: Allow sonar to publish failing tests (ant 1.8.1+)
smith@nwoca.org
parents:
18
diff
changeset
|
72 uri="http://www.ssdt-ohio.org/ant/common"> |
ad0a75e20f7b
TL-34: Allow sonar to publish failing tests (ant 1.8.1+)
smith@nwoca.org
parents:
18
diff
changeset
|
73 <attribute name="target" description="Target to add dendency for"/> |
ad0a75e20f7b
TL-34: Allow sonar to publish failing tests (ant 1.8.1+)
smith@nwoca.org
parents:
18
diff
changeset
|
74 <attribute name="depends" description="new dependancy for target"/> |
ad0a75e20f7b
TL-34: Allow sonar to publish failing tests (ant 1.8.1+)
smith@nwoca.org
parents:
18
diff
changeset
|
75 <sequential> |
ad0a75e20f7b
TL-34: Allow sonar to publish failing tests (ant 1.8.1+)
smith@nwoca.org
parents:
18
diff
changeset
|
76 <groovy> |
ad0a75e20f7b
TL-34: Allow sonar to publish failing tests (ant 1.8.1+)
smith@nwoca.org
parents:
18
diff
changeset
|
77 project.targets['@{target}'].addDependency('@{depends}') |
ad0a75e20f7b
TL-34: Allow sonar to publish failing tests (ant 1.8.1+)
smith@nwoca.org
parents:
18
diff
changeset
|
78 </groovy> |
ad0a75e20f7b
TL-34: Allow sonar to publish failing tests (ant 1.8.1+)
smith@nwoca.org
parents:
18
diff
changeset
|
79 </sequential> |
ad0a75e20f7b
TL-34: Allow sonar to publish failing tests (ant 1.8.1+)
smith@nwoca.org
parents:
18
diff
changeset
|
80 </macrodef> |
ad0a75e20f7b
TL-34: Allow sonar to publish failing tests (ant 1.8.1+)
smith@nwoca.org
parents:
18
diff
changeset
|
81 |
1 | 82 </project> |