mirror of https://github.com/apache/lucene.git
LUCENE-5920: More elegant (groovy-like) task creation
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1622463 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fbe31fe3a8
commit
96169ba6b2
|
@ -1350,13 +1350,18 @@ ${tests-output}/junit4-*.suites - per-JVM executed suites
|
||||||
if (iters <= 1) {
|
if (iters <= 1) {
|
||||||
throw new BuildException("Please give -Dbeast.iters with an int value > 1.");
|
throw new BuildException("Please give -Dbeast.iters with an int value > 1.");
|
||||||
}
|
}
|
||||||
|
|
||||||
def antcall = project.createTask('antcall');
|
def antcall = project.createTask('antcall');
|
||||||
antcall.target = '-test';
|
antcall.with {
|
||||||
antcall.inheritAll = true;
|
target = '-test';
|
||||||
antcall.inheritRefs = true;
|
inheritAll = true;
|
||||||
def prop = antcall.createParam();
|
inheritRefs = true;
|
||||||
prop.name = "tests.isbeasting";
|
createParam().with {
|
||||||
prop.value = "true";
|
name = "tests.isbeasting";
|
||||||
|
value = "true";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
(1..iters).each { i ->
|
(1..iters).each { i ->
|
||||||
task.log('Beast round: ' + i, Project.MSG_INFO);
|
task.log('Beast round: ' + i, Project.MSG_INFO);
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue