forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r179001 - /forrest/trunk/plugins/build.xml
Date Mon, 30 May 2005 02:28:59 GMT
Author: crossley
Date: Sun May 29 19:28:58 2005
New Revision: 179001

URL: http://svn.apache.org/viewcvs?rev=179001&view=rev
Log:
Remove confusing warnings from Ant when there are no built plugin jars
or libraries to be copied.

Modified:
    forrest/trunk/plugins/build.xml

Modified: forrest/trunk/plugins/build.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/build.xml?rev=179001&r1=179000&r2=179001&view=diff
==============================================================================
--- forrest/trunk/plugins/build.xml (original)
+++ forrest/trunk/plugins/build.xml Sun May 29 19:28:58 2005
@@ -130,9 +130,14 @@
         <exclude name="build/**"/>
       </fileset>
     </copy>
-  	<copy toFile="${forrest.plugins.localDeploy.dir}/lib/${plugin-name}.jar"
-  	      file="${build.dir}/${plugin-name}.jar"
-  	      failonerror="false"/>
+    <if>
+      <available file="${build.dir}/${plugin-name}.jar"/>
+      <then>
+        <copy toFile="${forrest.plugins.localDeploy.dir}/lib/${plugin-name}.jar"
+            file="${build.dir}/${plugin-name}.jar"
+            failonerror="false"/>
+       </then>
+     </if>
 
      <!-- add to the entity catalog -->
      <copy file="${forrest.core}/var/initial_catalog.xcat"
@@ -152,12 +157,16 @@
            tofile="${forrest.plugins.localDeploy.dir}/catalog.xcat"/>
        </then>
      </if>
-            
-  	<copy toDir="${forrest.plugins.localDeploy.dir}/lib"
-      failonerror="false">
-  	    <fileset dir="lib"/>
-    </copy>
-    
+
+    <if>
+      <available file="lib"/>
+      <then>
+        <copy toDir="${forrest.plugins.localDeploy.dir}/lib" failonerror="false">
+          <fileset dir="lib"/>
+        </copy>
+       </then>
+     </if>
+
     <antcall target="build"/>
   </target>
   



Mime
View raw message