lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hoss...@apache.org
Subject svn commit: r817089 - /lucene/solr/trunk/build.xml
Date Sun, 20 Sep 2009 19:48:37 GMT
Author: hossman
Date: Sun Sep 20 19:48:37 2009
New Revision: 817089

URL: http://svn.apache.org/viewvc?rev=817089&view=rev
Log:
we have the same nightly build failures over and over whenever anybody upgrades lucene --
from now on, let's fail fast if lucene_version doesn't match the lucene jars in lib so whoever
does the jar upgrade gets an error before they even waste time compiling Solr

Modified:
    lucene/solr/trunk/build.xml

Modified: lucene/solr/trunk/build.xml
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/build.xml?rev=817089&r1=817088&r2=817089&view=diff
==============================================================================
--- lucene/solr/trunk/build.xml (original)
+++ lucene/solr/trunk/build.xml Sun Sep 20 19:48:37 2009
@@ -84,6 +84,20 @@
   <target name="init-forrest-entities">
     <!-- no description, don't advertise -->
 
+
+    <available file="lib/lucene-core-${lucene_version}.jar"
+               property="lucene-version-ok-m2deploy-wont-fail" />
+    <fail unless="lucene-version-ok-m2deploy-wont-fail">
+      lib/lucene-core-${lucene_version}.jar Missing
+
+      lib/lucene-core-${lucene_version}.jar does not exist.
+      This will cause problems with m2-deploy later, so fail fast now.
+      
+      Probably cause: lucene jars were upgraded w/o modifying the
+      'lucene_version' property in common-build.xml
+    </fail>
+
+    
     <mkdir dir="${dest}" />
   	
   	<!-- A folder containing the expanded war file -->



Mime
View raw message