diff bootstrap.xml @ 33:f8b0dde24622

Replace groovy script with custom task to correct memory leak
author smith@nwoca.org
date Sat, 16 Apr 2011 16:27:53 -0400
parents ad0a75e20f7b
children 7a36ea2cb81a
line wrap: on
line diff
--- a/bootstrap.xml	Tue Apr 12 17:24:22 2011 -0400
+++ b/bootstrap.xml	Sat Apr 16 16:27:53 2011 -0400
@@ -1,5 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project name="ssdt.bootstrap"  basedir="." default="" xmlns:ssdt="http://www.ssdt-ohio.org/ant/common">
+<project name="ssdt.bootstrap"  basedir="." default="" 
+    xmlns:ssdt="http://www.ssdt-ohio.org/ant/common"
+    xmlns:ssdtant="antlib:org.ssdt_ohio.tools.ant">
+
     <echo message="invoking ssdt bootstrap" level="info"/>
 
     <property   file="${ssdt.devel.kit}/private.properties"/>
@@ -63,20 +66,14 @@
         </sequential>
     </macrodef>
 
+     <property           name="ssdt.ant.jar.src"
+                        value="http://ivy.ssdt.nwoca.org/repository/ssdt/ssdt-ant.jar"/>
+
+    <ssdt:fetch         dest="${user.home.ant.lib}/ssdt-ant.jar"
+                        src="${ssdt.ant.jar.src}"/>
+
     <ssdt:import-ant file="antcontrib-ant.xml"/>
     <ssdt:import-ant file="ssdt-common-build.xml"/>
     <ssdt:import-ant file="netbeans-ant.xml"/>
 
-    <macrodef name="add-dependency"
-              description="Dynamically adds a new dependencty into an existing target."
-              uri="http://www.ssdt-ohio.org/ant/common">
-        <attribute name="target" description="Target to add dendency for"/>
-        <attribute name="depends" description="new dependancy for target"/>
-        <sequential>
-            <groovy>
-                project.targets['@{target}'].addDependency('@{depends}')
-            </groovy>
-        </sequential>
-    </macrodef>
-
 </project>