diff 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
line wrap: on
line diff
--- a/bootstrap.xml	Tue Dec 28 14:58:20 2010 -0500
+++ b/bootstrap.xml	Thu Dec 30 14:53:49 2010 -0500
@@ -37,14 +37,15 @@
         </sequential>
     </macrodef>
 
-    <macrodef name="test-properties"
+    <macrodef name="properties"
               description="Creates test properties file from ant properties."
               uri="http://www.ssdt-ohio.org/ant/common">
+        <attribute name="dir" description="Target directory"/>
         <attribute name="file" description="Target properties file" default="@{prefix}.properties"/>
         <attribute name="prefix" description="Prefix of properties to save to new file"/>
         <sequential>
-            <mkdir dir="${build.test.classes.dir}"/>
-            <echoproperties destfile="${build.test.classes.dir}/@{file}">
+            <mkdir dir="@{dir}"/>
+            <echoproperties destfile="@{dir}/@{file}">
                 <propertyset>
                     <propertyref prefix="@{prefix}."/>
                     <mapper type="glob" from="@{prefix}.*" to="*"/>
@@ -53,6 +54,16 @@
         </sequential>
     </macrodef>
 
+    <macrodef name="test-properties"
+              description="Creates test properties file from ant properties."
+              uri="http://www.ssdt-ohio.org/ant/common">
+        <attribute name="file" description="Target properties file" default="@{prefix}.properties"/>
+        <attribute name="prefix" description="Prefix of properties to save to new file"/>
+        <sequential>
+            <ssdt:properties dir="${build.test.classes.dir}" file="@{file}" prefix="@{prefix}"/>
+        </sequential>
+    </macrodef>
+
     <ssdt:import-ant file="antcontrib-ant.xml"/>
     <ssdt:import-ant file="ssdt-common-build.xml"/>
     <ssdt:import-ant file="netbeans-ant.xml"/>