mirror of https://github.com/apache/lucene.git
LUCENE-5902: Simplify the property handling by having a default; only add explicitclass include if actually given; refactor filterchain (TODO: maybe use a one-line groovy for this, we already have groovy loaded before running tests...?)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1622685 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8f5259b4ff
commit
ff9e0437de
|
@ -885,23 +885,23 @@
|
||||||
<property name="tests.leaveTemporary" value="false" />
|
<property name="tests.leaveTemporary" value="false" />
|
||||||
<property name="tests.iters" value="" />
|
<property name="tests.iters" value="" />
|
||||||
<property name="tests.dups" value="1" />
|
<property name="tests.dups" value="1" />
|
||||||
|
<property name="tests.useSecurityManager" value="true" />
|
||||||
|
|
||||||
<!-- turn on security manager? -->
|
<!-- turn on security manager? -->
|
||||||
<condition property="java.security.manager" value="org.apache.lucene.util.TestSecurityManager">
|
<condition property="java.security.manager" value="org.apache.lucene.util.TestSecurityManager">
|
||||||
<or>
|
<istrue value="${tests.useSecurityManager}"/>
|
||||||
<not>
|
|
||||||
<isset property="tests.useSecurityManager"/>
|
|
||||||
</not>
|
|
||||||
<istrue value="${tests.useSecurityManager}"/>
|
|
||||||
</or>
|
|
||||||
</condition>
|
</condition>
|
||||||
|
|
||||||
|
<!-- create a fileset pattern that matches ${tests.class}. -->
|
||||||
<loadresource property="tests.explicitclass" quiet="true">
|
<loadresource property="tests.explicitclass" quiet="true">
|
||||||
<string value="${tests.class}" />
|
<string value="${tests.class}" />
|
||||||
<filterchain>
|
<filterchain>
|
||||||
<replaceregex pattern="\." replace="/" flags="g" />
|
<tokenfilter>
|
||||||
<replaceregex pattern="\*" replace="**" flags="g" />
|
<filetokenizer/>
|
||||||
<replaceregex pattern="$" replace=".class" />
|
<replacestring from="." to="/"/>
|
||||||
|
<replacestring from="*" to="**"/>
|
||||||
|
<replaceregex pattern="$" replace=".class" />
|
||||||
|
</tokenfilter>
|
||||||
</filterchain>
|
</filterchain>
|
||||||
</loadresource>
|
</loadresource>
|
||||||
|
|
||||||
|
@ -1158,7 +1158,7 @@
|
||||||
<fileset dir="@{testsDir}">
|
<fileset dir="@{testsDir}">
|
||||||
<include name="**/Test*.class" />
|
<include name="**/Test*.class" />
|
||||||
<include name="**/*Test.class" />
|
<include name="**/*Test.class" />
|
||||||
<include name="${tests.explicitclass}" />
|
<include name="${tests.explicitclass}" if="tests.explicitclass" />
|
||||||
<exclude name="**/*$*" />
|
<exclude name="**/*$*" />
|
||||||
</fileset>
|
</fileset>
|
||||||
</junit4:duplicate>
|
</junit4:duplicate>
|
||||||
|
|
Loading…
Reference in New Issue