You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by si...@apache.org on 2006/08/18 16:56:45 UTC

svn commit: r432611 - in /lucene/nutch/trunk: CHANGES.txt src/plugin/build-plugin.xml

Author: siren
Date: Fri Aug 18 07:56:44 2006
New Revision: 432611

URL: http://svn.apache.org/viewvc?rev=432611&view=rev
Log:
NUTCH-347 adjust plugin build script not to emit warnings when copying dependant jars

Modified:
    lucene/nutch/trunk/CHANGES.txt
    lucene/nutch/trunk/src/plugin/build-plugin.xml

Modified: lucene/nutch/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/nutch/trunk/CHANGES.txt?rev=432611&r1=432610&r2=432611&view=diff
==============================================================================
--- lucene/nutch/trunk/CHANGES.txt (original)
+++ lucene/nutch/trunk/CHANGES.txt Fri Aug 18 07:56:44 2006
@@ -18,6 +18,8 @@
  6. NUTCH-348 - Fix Generator to select highest scoring pages (Chris
     Schneider and Stefan Groschupf via ab)
 
+ 7. NUTCH-347 adjust plugin build script not to emit warnings when copying
+    dependant jars (siren)
 
 Release 0.8 - 2006-07-25
 

Modified: lucene/nutch/trunk/src/plugin/build-plugin.xml
URL: http://svn.apache.org/viewvc/lucene/nutch/trunk/src/plugin/build-plugin.xml?rev=432611&r1=432610&r2=432611&view=diff
==============================================================================
--- lucene/nutch/trunk/src/plugin/build-plugin.xml (original)
+++ lucene/nutch/trunk/src/plugin/build-plugin.xml Fri Aug 18 07:56:44 2006
@@ -132,10 +132,16 @@
     <mkdir dir="${deploy.dir}"/>
     <copy file="plugin.xml" todir="${deploy.dir}" 
           preservelastmodified="true"/>
-    <copy file="${build.dir}/${name}.jar" todir="${deploy.dir}" failonerror="false"/>
+    <available property="lib-available"
+                 file="${build.dir}/${name}.jar"/>
+    <antcall target="copy-generated-lib"/>
     <copy todir="${deploy.dir}" flatten="true">
       <fileset refid="lib.jars"/>
     </copy>
+  </target>
+	
+  <target name="copy-generated-lib" if="lib-available">
+    <copy file="${build.dir}/${name}.jar" todir="${deploy.dir}" failonerror="false"/>
   </target>
 
   <!-- ================================================================== -->