annotate bootstrap.xml @ 17:fc114dab4c50

TL-32: Add task (ssdt:properties) to create properties file in any directory.
author smith@nwoca.org
date Thu, 30 Dec 2010 14:53:49 -0500
parents 3cb1ff0297a8
children e4c45fd105ea
rev   line source
1
73a34884e523 Initial bootstrap
smith@nwoca.org
parents:
diff changeset
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
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents: 3
diff changeset
3 <echo message="invoking ssdt bootstrap" level="info"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents: 3
diff changeset
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents: 3
diff changeset
5 <property file="${ssdt.devel.kit}/private.properties"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents: 3
diff changeset
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"/>
5
9c847b8c7e9c TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents: 4
diff changeset
8 <property name="ssdt.ivy.jar.src" value="http://ivy.ssdt.nwoca.org/repository/ivy/ivy.jar"/>
6
e779cd205e30 TL-32: Add default ivy settings and update fetch typedef.
smith@nwoca.org
parents: 5
diff changeset
9 <property name="ssdt.ivy.settings.src" value="${ssdt.devel.kit.src}/ssdt.default.ivy.settings.xml"/>
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents: 3
diff changeset
10 <mkdir dir="${ssdt.devel.kit}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents: 3
diff changeset
11 <mkdir dir="${user.home.ant.lib}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents: 3
diff changeset
12
5
9c847b8c7e9c TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents: 4
diff changeset
13 <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
14 <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
15 <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
16 <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
17 <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
18 </sequential>
14
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
19 </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
20
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 <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
22 <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
23 <sequential>
5
9c847b8c7e9c TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents: 4
diff changeset
24 <get dest="${ssdt.devel.kit}/@{file}"
14
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
25 src="${ssdt.devel.kit.src}/@{file}"
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
26 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
27 </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
28 </macrodef>
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents: 3
diff changeset
29
6
e779cd205e30 TL-32: Add default ivy settings and update fetch typedef.
smith@nwoca.org
parents: 5
diff changeset
30 <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
31 <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
32 <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
33 <sequential>
9c847b8c7e9c TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents: 4
diff changeset
34 <get dest="@{dest}"
14
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
35 src="@{src}"
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
36 usetimestamp="true" verbose="false" ignoreerrors="true"/>
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
37 </sequential>
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
38 </macrodef>
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
39
17
fc114dab4c50 TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents: 14
diff changeset
40 <macrodef name="properties"
14
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
41 description="Creates test properties file from ant properties."
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
42 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
43 <attribute name="dir" description="Target directory"/>
14
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
44 <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
45 <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
46 <sequential>
17
fc114dab4c50 TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents: 14
diff changeset
47 <mkdir dir="@{dir}"/>
fc114dab4c50 TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents: 14
diff changeset
48 <echoproperties destfile="@{dir}/@{file}">
14
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
49 <propertyset>
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
50 <propertyref prefix="@{prefix}."/>
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
51 <mapper type="glob" from="@{prefix}.*" to="*"/>
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
52 </propertyset>
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 12
diff changeset
53 </echoproperties>
5
9c847b8c7e9c TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents: 4
diff changeset
54 </sequential>
9c847b8c7e9c TL-32: Update ssdt-common-build to remove obsolte tasks and remove CVS assumptions.
smith@nwoca.org
parents: 4
diff changeset
55 </macrodef>
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents: 3
diff changeset
56
17
fc114dab4c50 TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents: 14
diff changeset
57 <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
58 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
59 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
60 <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
61 <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
62 <sequential>
fc114dab4c50 TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents: 14
diff changeset
63 <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
64 </sequential>
fc114dab4c50 TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents: 14
diff changeset
65 </macrodef>
fc114dab4c50 TL-32: Add task (ssdt:properties) to create properties file in any directory.
smith@nwoca.org
parents: 14
diff changeset
66
5
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="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
68 <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
69 <ssdt:import-ant file="netbeans-ant.xml"/>
1
73a34884e523 Initial bootstrap
smith@nwoca.org
parents:
diff changeset
70 </project>