You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2014/09/04 13:53:24 UTC
svn commit: r1622463 - /lucene/dev/trunk/lucene/common-build.xml
Author: uschindler
Date: Thu Sep 4 11:53:23 2014
New Revision: 1622463
URL: http://svn.apache.org/r1622463
Log:
LUCENE-5920: More elegant (groovy-like) task creation
Modified:
lucene/dev/trunk/lucene/common-build.xml
Modified: lucene/dev/trunk/lucene/common-build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/common-build.xml?rev=1622463&r1=1622462&r2=1622463&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/common-build.xml (original)
+++ lucene/dev/trunk/lucene/common-build.xml Thu Sep 4 11:53:23 2014
@@ -1350,13 +1350,18 @@ ${tests-output}/junit4-*.suites - pe
if (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 {