Apache Lucene open-source search software
SOLR-5048: fail the build if the example solrconfig.xml files do not have an up to date luceneMatchVersion
Chris M. Hostetter8928d3d35128
diff --git a/solr/build.xml b/solr/build.xmlindex a1c4e3ff1ba..996fbc010a9 100644--- a/solr/build.xml+++ b/solr/build.xml@@ -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">