Apache Solr open-source search software
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
Chris M. Hostetter60f17a9c59f6
diff --git a/build.xml b/build.xmlindex ec4a01741e2..381ac26e9e9 100644--- a/build.xml+++ b/build.xml@@ -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 -->