Hello,

The following patch aims to check downloaded libs only once when I
build using 'ant jar jar-src'.

Also download check can be disabled by specifing property
build-download.done.

Index: build.xml
===================================================================
--- build.xml   (revision 345188)
+++ build.xml   (working copy)
@@ -123,11 +124,18 @@
   </target>
 
   <!-- =================================================================== -->
-  <!-- sets up the build environment (classpath and libs)                  -->
+  <!-- downloads referenced libs                                           -->
   <!-- =================================================================== -->
-  <target name="build-prepare">
+  <target name="build-download" unless="build-download.done">
     <ant antfile="${velocity.build.dir}/download.xml" target="build-download" 
/>
+    <property name="build-download.done" value="true"/>
+  </target>
 
+  <!-- =================================================================== -->
+  <!-- sets up the build environment (classpath and libs)                  -->
+  <!-- =================================================================== -->
+  <target name="build-prepare" depends="build-download">
+
     <!-- Build classpath -->
     <path id="velocity.build.classpath">
       <fileset dir="${build.lib}">

-- 
Best regards,
 Alexey                          mailto:[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to