geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r543031 - /geronimo/sandbox/build-support/harness/trunk/src/main/resources/harness.xml
Date Thu, 31 May 2007 03:10:59 GMT
Author: jdillon
Date: Wed May 30 20:10:58 2007
New Revision: 543031

URL: http://svn.apache.org/viewvc?view=rev&rev=543031
Log:
Use codestation to get the bootstrap library muck

Modified:
    geronimo/sandbox/build-support/harness/trunk/src/main/resources/harness.xml

Modified: geronimo/sandbox/build-support/harness/trunk/src/main/resources/harness.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/harness/trunk/src/main/resources/harness.xml?view=diff&rev=543031&r1=543030&r2=543031
==============================================================================
--- geronimo/sandbox/build-support/harness/trunk/src/main/resources/harness.xml (original)
+++ geronimo/sandbox/build-support/harness/trunk/src/main/resources/harness.xml Wed May 30
20:10:58 2007
@@ -24,31 +24,7 @@
     
     <property name="tools.dir" value="${basedir}/tools"/>
     <property name="lib.dir" value="${basedir}/lib"/>
-    <property name="library.baseurl" value="https://svn.apache.org/repos/asf/geronimo/sandbox/build-support/libraries"/>
     <property name="library.basedir" value="${basedir}/libraries"/>
-    <property name="library.system.version" value="1"/>
-    
-    <macrodef name="getlibrary">
-        <attribute name="name"/>
-        <attribute name="version"/>
-        <sequential>
-            <echo>Fetching library @{name} version @{version} ...</echo>
-            
-            <mkdir dir="${library.basedir}"/>
-            
-            <!--
-            FIXME: Need to try harder when this returns an error, cause if this
-                   fails, then the entire build will fail
-            -->
-            
-            <exec executable="svn" dir="${library.basedir}">
-                <arg value="export"/>
-                <arg value="--non-interactive"/>
-                <arg value="${library.baseurl}/@{name}/@{version}"/>
-                <arg value="@{name}"/>
-            </exec>
-        </sequential>
-    </macrodef>
     
     <target name="init">
         <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy">
@@ -61,13 +37,21 @@
     </target>
     
     <target name="setup-libraries" depends="init">
-        <getlibrary name="system" version="${library.system.version}"/>
-        
-        <chmod perm="u+x">
-            <fileset dir="${library.basedir}">
-                <include name="*/bin/*"/>
-            </fileset>
-        </chmod>
+        <groovy>
+            import com.urbancode.codestation2.client.CodestationClient
+            
+            def baseDir = new File("${library.basedir}")
+            
+            def client = new CodestationClient('https://gbuild.org:9443', true)
+            client.debug = true
+            client.workingDir = baseDir.parentFile.canonicalPath
+            
+            def doc = client.projectLookup('Build Library', 'build', '1*')
+            def profileId = client.extractProfileId(doc)
+            def buildLifeId = client.extractBuildlifeId(doc)
+            
+            client.retrieveArtifacts(projectName, profileId, null, buildLifeId, setName,
baseDir.name)
+        </groovy>
     </target>
     
     <target name="setup-tools" depends="init">



Mime
View raw message