abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r419729 - in /incubator/abdera/java/trunk/build: build.xml tools/
Date Thu, 06 Jul 2006 22:44:26 GMT
Author: jmsnell
Date: Thu Jul  6 15:44:26 2006
New Revision: 419729

URL: http://svn.apache.org/viewvc?rev=419729&view=rev
Log:
Download retroweaver dynamically so it doesn't have to live in the svn

Removed:
    incubator/abdera/java/trunk/build/tools/
Modified:
    incubator/abdera/java/trunk/build/build.xml

Modified: incubator/abdera/java/trunk/build/build.xml
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/build/build.xml?rev=419729&r1=419728&r2=419729&view=diff
==============================================================================
--- incubator/abdera/java/trunk/build/build.xml (original)
+++ incubator/abdera/java/trunk/build/build.xml Thu Jul  6 15:44:26 2006
@@ -38,22 +38,13 @@
   <property name="server.src" value="${server}/src/main/java" />
   <property name="server.work" value="${work}/server" />
   <property name="server.jar" value="${dist}/${ant.project.name}.server.${version}.jar"
/>
-  
-	<property name="retro_core.jar" value="${dist}/${ant.project.name}.core.${version}.retro.jar"
/>
-  <property name="retro_parser.jar" value="${dist}/${ant.project.name}.parser.${version}.retro.jar"
/>
-  <property name="retro_extensions.jar" value="${dist}/${ant.project.name}.extensions.${version}.retro.jar"
/>
-  <property name="retro_server.jar" value="${dist}/${ant.project.name}.server.${version}.retro.jar"
/>
-  	
+    	
   <property name="dependencies" value="${basedir}/dependencies" />
   <property file="${dependencies}/deps.properties" />
 
   <path id="jar.dependencies">
     <fileset dir="${dependencies}" includes="**/*.jar" />
   </path>
-
-  <path id="jar.retro">
-    <fileset dir="${basedir}/build/tools/retroweaver/release" includes="**/*.jar" />
-  </path>
 	
   <target name="dependencies">
     <path id="">
@@ -256,28 +247,42 @@
   </target>
   
 	<target name="retro" >
+		<property name="retrozip" value="${basedir}/build/tools/${retroweaver.zip}" />
+		<property name="retro" value="${basedir}/build/tools/retroweaver-1.2.3" />
+		<property name="retro_core.jar" value="${dist}/${ant.project.name}.core.${version}.retro.jar"
/>
+	  <property name="retro_parser.jar" value="${dist}/${ant.project.name}.parser.${version}.retro.jar"
/>
+	  <property name="retro_extensions.jar" value="${dist}/${ant.project.name}.extensions.${version}.retro.jar"
/>
+	  <property name="retro_server.jar" value="${dist}/${ant.project.name}.server.${version}.retro.jar"
/>
+		<condition property="do.download.retroweaver">
+			<not><available file="${retrozip}"/></not>
+		</condition>
+		<antcall target="go_retro" />
+    <path id="jar.retro">
+	    <fileset dir="${retro}/release" includes="**/*.jar" />
+	  </path>		
 		<echo>Retroweaving the Jars...</echo>
-    <java classpathref="jar.retro" 
-          classname="com.rc.retroweaver.Weaver"
-          fork="yes">
+		<java classpathref="jar.retro" classname="com.rc.retroweaver.Weaver" fork="yes">
     	<arg line="-jar ${core.jar} ${retro_core.jar}" />
     </java>
-    <java classpathref="jar.retro" 
-          classname="com.rc.retroweaver.Weaver"
-          fork="yes">
+    <java classpathref="jar.retro" classname="com.rc.retroweaver.Weaver" fork="yes">
     	<arg line="-jar ${parser.jar} ${retro_parser.jar}"/>
     </java>
-    <java classpathref="jar.retro" 
-          classname="com.rc.retroweaver.Weaver"
-          fork="yes">
+    <java classpathref="jar.retro" classname="com.rc.retroweaver.Weaver" fork="yes">
       <arg line="-jar ${server.jar} ${retro_server.jar}" />
     </java>
-    <java classpathref="jar.retro" 
-          classname="com.rc.retroweaver.Weaver"
-          fork="yes">
+    <java classpathref="jar.retro" classname="com.rc.retroweaver.Weaver" fork="yes">
       <arg line="-jar ${extensions.jar} ${retro_extensions.jar}" />
 		</java>
-		<copy todir="${dist_lib}" file="${basedir}/build/tools/retroweaver/release/retroweaver-rt-1.2.3.jar"
/>
+		<copy todir="${dist_lib}" file="${retro}/release/retroweaver-rt-1.2.3.jar" />
+	</target>
+	
+	<target name="go_retro" if="do.download.retroweaver">
+		<echo>Downloading Retroweaver...</echo>
+		<get src="${retroweaver.dir}/${retroweaver.zip}"
+		     dest="${basedir}/build/tools/${retroweaver.zip}"
+		     usetimestamp="true" />
+		<unzip src="${basedir}/build/tools/${retroweaver.zip}"
+		     dest="${basedir}/build/tools/" overwrite="true"/>
 	</target>
 	
 </project>



Mime
View raw message