mirror of https://github.com/apache/lucene.git
SOLR-5048: fail the build if the example solrconfig.xml files do not have an up to date luceneMatchVersion
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1504570 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
026c9523bd
commit
8928d3d351
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue