You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by ho...@apache.org on 2009/09/20 21:48:37 UTC

svn commit: r817089 - /lucene/solr/trunk/build.xml

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 -->