annotate bootstrap.xml @ 159:0c48cfd1938b

allow projects to override branchName
author Dave Smith <smith@nwoca.org>
date Wed, 06 Nov 2013 02:13:31 +0000
parents f8b0dde24622
children 7a36ea2cb81a
rev   line source
1
73a34884e523 Initial bootstrap
smith@nwoca.org
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
33
f8b0dde24622 Replace groovy script with custom task to correct memory leak
smith@nwoca.org
parents: 28
diff changeset
2 <project name="ssdt.bootstrap" basedir="." default=""
f8b0dde24622 Replace groovy script with custom task to correct memory leak
smith@nwoca.org
parents: 28
diff changeset
3 xmlns:ssdt="http://www.ssdt-ohio.org/ant/common"
f8b0dde24622 Replace groovy script with custom task to correct memory leak
smith@nwoca.org
parents: 28
diff changeset
4 xmlns:ssdtant="antlib:org.ssdt_ohio.tools.ant">
f8b0dde24622 Replace groovy script with custom task to correct memory leak
smith@nwoca.org
parents: 28
diff changeset
5
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents: 3
diff changeset
6 <echo message="invoking ssdt bootstrap" level="info"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents: 3
diff changeset
7
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents: 3
diff changeset
8 <property file="${ssdt.devel.kit}/private.properties"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents: 3
diff changeset
9 <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
10 <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
11
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents: 3
diff changeset
12 <mkdir dir="${ssdt.devel.kit}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents: 3
diff changeset
13 <mkdir dir="${user.home.ant.lib}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents: 3
diff changeset
14
5
9c847b8c7e9c TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents: 4
diff changeset
15 <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
16 <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
17 <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
18 <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
19 <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
20 </sequential>
14
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
21 </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
22
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents: 8
diff changeset
23 <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
24 <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
25 <sequential>
5
9c847b8c7e9c TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents: 4
diff changeset
26 <get dest="${ssdt.devel.kit}/@{file}"
14
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
27 src="${ssdt.devel.kit.src}/@{file}"
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
28 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
29 </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
30 </macrodef>
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents: 3
diff changeset
31
6
e779cd205e30 TL-32: Add default ivy settings and update fetch typedef.
smith@nwoca.org
parents: 5
diff changeset
32 <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
33 <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
34 <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
35 <sequential>
9c847b8c7e9c TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents: 4
diff changeset
36 <get dest="@{dest}"
14
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
37 src="@{src}"
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
38 usetimestamp="true" verbose="false" ignoreerrors="true"/>
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
39 </sequential>
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
40 </macrodef>
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
41
17
fc114dab4c50 TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents: 14
diff changeset
42 <macrodef name="properties"
14
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
43 description="Creates test properties file from ant properties."
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
44 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
45 <attribute name="dir" description="Target directory"/>
14
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
46 <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
47 <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
48 <sequential>
17
fc114dab4c50 TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents: 14
diff changeset
49 <mkdir dir="@{dir}"/>
fc114dab4c50 TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents: 14
diff changeset
50 <echoproperties destfile="@{dir}/@{file}">
14
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 <propertyref prefix="@{prefix}."/>
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
53 <mapper type="glob" from="@{prefix}.*" to="*"/>
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
54 </propertyset>
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
55 </echoproperties>
5
9c847b8c7e9c TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents: 4
diff changeset
56 </sequential>
9c847b8c7e9c TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents: 4
diff changeset
57 </macrodef>
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents: 3
diff changeset
58
17
fc114dab4c50 TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents: 14
diff changeset
59 <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
60 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
61 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
62 <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
63 <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
64 <sequential>
fc114dab4c50 TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents: 14
diff changeset
65 <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
66 </sequential>
fc114dab4c50 TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents: 14
diff changeset
67 </macrodef>
fc114dab4c50 TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents: 14
diff changeset
68
33
f8b0dde24622 Replace groovy script with custom task to correct memory leak
smith@nwoca.org
parents: 28
diff changeset
69 <property name="ssdt.ant.jar.src"
f8b0dde24622 Replace groovy script with custom task to correct memory leak
smith@nwoca.org
parents: 28
diff changeset
70 value="http://ivy.ssdt.nwoca.org/repository/ssdt/ssdt-ant.jar"/>
f8b0dde24622 Replace groovy script with custom task to correct memory leak
smith@nwoca.org
parents: 28
diff changeset
71
f8b0dde24622 Replace groovy script with custom task to correct memory leak
smith@nwoca.org
parents: 28
diff changeset
72 <ssdt:fetch dest="${user.home.ant.lib}/ssdt-ant.jar"
f8b0dde24622 Replace groovy script with custom task to correct memory leak
smith@nwoca.org
parents: 28
diff changeset
73 src="${ssdt.ant.jar.src}"/>
f8b0dde24622 Replace groovy script with custom task to correct memory leak
smith@nwoca.org
parents: 28
diff changeset
74
5
9c847b8c7e9c TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents: 4
diff changeset
75 <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
76 <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
77 <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
78
1
73a34884e523 Initial bootstrap
smith@nwoca.org
parents:
diff changeset
79 </project>