Apache Lucene open-source search software
LUCENE-5920: More elegant (groovy-like) task creation
Uwe Schindler96169ba6b211
diff --git a/lucene/common-build.xml b/lucene/common-build.xmlindex 0dd70d46597..ec2a12bb11e 100644--- a/lucene/common-build.xml+++ b/lucene/common-build.xml@@ -1350,13 +1350,18 @@ ${tests-output}/junit4-*.suites - per-JVM executed suitesif (iters <= 1) {throw new BuildException("Please give -Dbeast.iters with an int value > 1.");}+def antcall = project.createTask('antcall');- antcall.target = '-test';- antcall.inheritAll = true;- antcall.inheritRefs = true;- def prop = antcall.createParam();- prop.name = "tests.isbeasting";- prop.value = "true";+ antcall.with {+ target = '-test';+ inheritAll = true;+ inheritRefs = true;+ createParam().with {+ name = "tests.isbeasting";+ value = "true";+ };+ };+(1..iters).each { i ->task.log('Beast round: ' + i, Project.MSG_INFO);try {