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:54:41 UTC

svn commit: r1622464 - in /lucene/dev/branches/branch_4x: ./ lucene/ lucene/common-build.xml

Author: uschindler
Date: Thu Sep  4 11:54:40 2014
New Revision: 1622464

URL: http://svn.apache.org/r1622464
Log:
Merged revision(s) 1622463 from lucene/dev/trunk:
LUCENE-5920: More elegant (groovy-like) task creation

Modified:
    lucene/dev/branches/branch_4x/   (props changed)
    lucene/dev/branches/branch_4x/lucene/   (props changed)
    lucene/dev/branches/branch_4x/lucene/common-build.xml   (contents, props changed)

Modified: lucene/dev/branches/branch_4x/lucene/common-build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/common-build.xml?rev=1622464&r1=1622463&r2=1622464&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/common-build.xml (original)
+++ lucene/dev/branches/branch_4x/lucene/common-build.xml Thu Sep  4 11:54:40 2014
@@ -1352,13 +1352,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 {