comparison bootstrap.xml @ 14:3cb1ff0297a8

TL-32: Add task for creating test properties.
author smith@nwoca.org
date Sun, 26 Dec 2010 16:18:59 -0500
parents 9358041972c0
children fc114dab4c50
comparison
equal deleted inserted replaced
13:dc7212d33458 14:3cb1ff0297a8
14 <attribute name="file"/> 14 <attribute name="file"/>
15 <sequential> 15 <sequential>
16 <ssdt:require-ant file="@{file}"/> 16 <ssdt:require-ant file="@{file}"/>
17 <import file="${ssdt.devel.kit}/@{file}"/> 17 <import file="${ssdt.devel.kit}/@{file}"/>
18 </sequential> 18 </sequential>
19 </macrodef> 19 </macrodef>
20 20
21 <macrodef name="require-ant" uri="http://www.ssdt-ohio.org/ant/common"> 21 <macrodef name="require-ant" uri="http://www.ssdt-ohio.org/ant/common">
22 <attribute name="file"/> 22 <attribute name="file"/>
23 <sequential> 23 <sequential>
24 <get dest="${ssdt.devel.kit}/@{file}" 24 <get dest="${ssdt.devel.kit}/@{file}"
25 src="${ssdt.devel.kit.src}/@{file}" 25 src="${ssdt.devel.kit.src}/@{file}"
26 usetimestamp="true" verbose="false" ignoreerrors="true" /> 26 usetimestamp="true" verbose="false" ignoreerrors="true" />
27 </sequential> 27 </sequential>
28 </macrodef> 28 </macrodef>
29 29
30 <macrodef name="fetch" uri="http://www.ssdt-ohio.org/ant/common"> 30 <macrodef name="fetch" uri="http://www.ssdt-ohio.org/ant/common">
31 <attribute name="dest" default="${user.home.ant.lib}"/> 31 <attribute name="dest" default="${user.home.ant.lib}"/>
32 <attribute name="src"/> 32 <attribute name="src"/>
33 <sequential> 33 <sequential>
34 <get dest="@{dest}" 34 <get dest="@{dest}"
35 src="@{src}" 35 src="@{src}"
36 usetimestamp="true" verbose="false" ignoreerrors="true"/> 36 usetimestamp="true" verbose="false" ignoreerrors="true"/>
37 </sequential>
38 </macrodef>
39
40 <macrodef name="test-properties"
41 description="Creates test properties file from ant properties."
42 uri="http://www.ssdt-ohio.org/ant/common">
43 <attribute name="file" description="Target properties file" default="@{prefix}.properties"/>
44 <attribute name="prefix" description="Prefix of properties to save to new file"/>
45 <sequential>
46 <mkdir dir="${build.test.classes.dir}"/>
47 <echoproperties destfile="${build.test.classes.dir}/@{file}">
48 <propertyset>
49 <propertyref prefix="@{prefix}."/>
50 <mapper type="glob" from="@{prefix}.*" to="*"/>
51 </propertyset>
52 </echoproperties>
37 </sequential> 53 </sequential>
38 </macrodef> 54 </macrodef>
39 55
40 <ssdt:import-ant file="antcontrib-ant.xml"/> 56 <ssdt:import-ant file="antcontrib-ant.xml"/>
41 <ssdt:import-ant file="ssdt-common-build.xml"/> 57 <ssdt:import-ant file="ssdt-common-build.xml"/>