LUCENE-5968: Improve error message when 'ant beast' is run on top-level modules

This closes #96

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1642488 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2014-11-29 23:52:42 +00:00
parent cddb06dde3
commit 57ff9ed94c
6 changed files with 22 additions and 0 deletions

View File

@ -68,6 +68,10 @@
</subant>
</target>
<target name="beast">
<fail message="The Beast only works inside of individual modules"/>
</target>
<target name="documentation" description="Generate Lucene and Solr Documentation">
<subant target="documentation" inheritall="false" failonerror="true">
<fileset dir="lucene" includes="build.xml" />

View File

@ -313,6 +313,9 @@ Tests
Some of the slow Monster tests now explicitly choose the default codec.
(Mike McCandless, Shawn Heisey)
* LUCENE-5968: Improve error message when 'ant beast' is run on top-level
modules. (Ramkumar Aiyengar, Uwe Schindler)
Optimizations
* LUCENE-5960: Use a more efficient bitset, not a Set<Integer>, to

View File

@ -105,6 +105,9 @@
<target name="test">
<forall-analyzers target="test"/>
</target>
<target name="beast">
<fail message="The Beast only works inside of individual modules"/>
</target>
<target name="jar">
<forall-analyzers target="jar-core"/>
</target>

View File

@ -60,6 +60,10 @@
description="Runs pitests (core, modules and back-compat)"
/>
<target name="beast">
<fail message="The Beast only works inside of individual modules"/>
</target>
<target name="compile-core" depends="compile-lucene-core"/>
<!-- lucene/test-framework is excluded from compilation -->

View File

@ -1351,6 +1351,11 @@ ${tests-output}/junit4-*.suites - per-JVM executed suites
<!-- Beast the actual tests (must be wrapped with -init-totals, -check-totals) -->
<target name="-beast" depends="resolve-groovy">
<fail message="The Beast only works inside of individual modules (where 'junit.classpath' is defined)">
<condition>
<not><isreference refid="junit.classpath"/></not>
</condition>
</fail>
<groovy taskname="beaster"><![CDATA[
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.BuildLogger;

View File

@ -133,6 +133,9 @@
depends="-clover.load, test-solr-core, test-solrj"/>
<target name="pitest" description="Validate, then run core, solrj, and contrib unit tests."
depends="pitest-core, pitest-contrib"/>
<target name="beast">
<fail message="The Beast only works inside of individual modules"/>
</target>
<target name="compile-test" description="Compile core, solrj, and contrib unit tests, and solr-test-framework."
depends="compile-solr-test-framework, compile-test-solr-core, compile-test-solrj, compile-test-contrib"/>
<target name="javadocs" description="Calls javadocs-all, javadocs-solrj, and javadocs-test-framework"