comparison 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
comparison
equal deleted inserted replaced
16:5084ebcc8128 17:fc114dab4c50
35 src="@{src}" 35 src="@{src}"
36 usetimestamp="true" verbose="false" ignoreerrors="true"/> 36 usetimestamp="true" verbose="false" ignoreerrors="true"/>
37 </sequential> 37 </sequential>
38 </macrodef> 38 </macrodef>
39 39
40 <macrodef name="test-properties" 40 <macrodef name="properties"
41 description="Creates test properties file from ant properties." 41 description="Creates test properties file from ant properties."
42 uri="http://www.ssdt-ohio.org/ant/common"> 42 uri="http://www.ssdt-ohio.org/ant/common">
43 <attribute name="dir" description="Target directory"/>
43 <attribute name="file" description="Target properties file" default="@{prefix}.properties"/> 44 <attribute name="file" description="Target properties file" default="@{prefix}.properties"/>
44 <attribute name="prefix" description="Prefix of properties to save to new file"/> 45 <attribute name="prefix" description="Prefix of properties to save to new file"/>
45 <sequential> 46 <sequential>
46 <mkdir dir="${build.test.classes.dir}"/> 47 <mkdir dir="@{dir}"/>
47 <echoproperties destfile="${build.test.classes.dir}/@{file}"> 48 <echoproperties destfile="@{dir}/@{file}">
48 <propertyset> 49 <propertyset>
49 <propertyref prefix="@{prefix}."/> 50 <propertyref prefix="@{prefix}."/>
50 <mapper type="glob" from="@{prefix}.*" to="*"/> 51 <mapper type="glob" from="@{prefix}.*" to="*"/>
51 </propertyset> 52 </propertyset>
52 </echoproperties> 53 </echoproperties>
53 </sequential> 54 </sequential>
54 </macrodef> 55 </macrodef>
55 56
57 <macrodef name="test-properties"
58 description="Creates test properties file from ant properties."
59 uri="http://www.ssdt-ohio.org/ant/common">
60 <attribute name="file" description="Target properties file" default="@{prefix}.properties"/>
61 <attribute name="prefix" description="Prefix of properties to save to new file"/>
62 <sequential>
63 <ssdt:properties dir="${build.test.classes.dir}" file="@{file}" prefix="@{prefix}"/>
64 </sequential>
65 </macrodef>
66
56 <ssdt:import-ant file="antcontrib-ant.xml"/> 67 <ssdt:import-ant file="antcontrib-ant.xml"/>
57 <ssdt:import-ant file="ssdt-common-build.xml"/> 68 <ssdt:import-ant file="ssdt-common-build.xml"/>
58 <ssdt:import-ant file="netbeans-ant.xml"/> 69 <ssdt:import-ant file="netbeans-ant.xml"/>
59 </project> 70 </project>