You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ho...@apache.org on 2013/07/18 19:57:48 UTC
svn commit: r1504570 - /lucene/dev/trunk/solr/build.xml
Author: hossman
Date: Thu Jul 18 17:57:48 2013
New Revision: 1504570
URL: http://svn.apache.org/r1504570
Log:
SOLR-5048: fail the build if the example solrconfig.xml files do not have an up to date luceneMatchVersion
Modified:
lucene/dev/trunk/solr/build.xml
Modified: lucene/dev/trunk/solr/build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/build.xml?rev=1504570&r1=1504569&r2=1504570&view=diff
==============================================================================
--- lucene/dev/trunk/solr/build.xml (original)
+++ lucene/dev/trunk/solr/build.xml Thu Jul 18 17:57:48 2013
@@ -226,7 +226,21 @@
</target>
<!-- Validation (license/notice/api checks). -->
- <target name="validate" depends="check-licenses,rat-sources,check-forbidden-apis" description="Validate stuff." />
+ <target name="validate" depends="check-example-lucene-match-version,check-licenses,rat-sources,check-forbidden-apis" description="Validate stuff." />
+
+ <target name="check-example-lucene-match-version">
+ <fail message="Some example solrconfig.xml files do not refer to the correct luceneMatchVersion: ${tests.luceneMatchVersion}">
+ <condition>
+ <resourcecount when="greater" count="0">
+ <fileset dir="${example}" includes="**/solrconfig.xml">
+ <not>
+ <contains text="<luceneMatchVersion>${tests.luceneMatchVersion}<" casesensitive="no"/>
+ </not>
+ </fileset>
+ </resourcecount>
+ </condition>
+ </fail>
+ </target>
<target name="check-licenses" depends="compile-tools,resolve,load-custom-tasks" description="Validate license stuff.">
<license-check-macro dir="${basedir}" licensedir="${common-solr.dir}/licenses">