From 3dbb07b9c2acfc31baa92db0d41a6a2b225f5aa9 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Sun, 10 Aug 2014 09:54:24 +0000 Subject: [PATCH] LUCENE-5881: Add parameter check, beautify some other groovy code git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1617079 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/common-build.xml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lucene/common-build.xml b/lucene/common-build.xml index 685729c6804..ad47d02c4e7 100644 --- a/lucene/common-build.xml +++ b/lucene/common-build.xml @@ -1310,7 +1310,12 @@ ${tests-output}/junit4-*.suites - per-JVM executed suites 1."); + } def antcall = project.createTask('antcall'); antcall.target = '-test'; antcall.inheritAll = true; @@ -1326,8 +1331,10 @@ ${tests-output}/junit4-*.suites - per-JVM executed suites if (line ==~ /^[0-9]+/) { total += Integer.valueOf(line); @@ -1336,7 +1343,7 @@ ${tests-output}/junit4-*.suites - per-JVM executed suites statsFile.delete(); if (total == 0) { - throw new org.apache.tools.ant.BuildException("Not even a single test was executed (a typo in the filter pattern maybe)?"); + throw new BuildException("Not even a single test was executed (a typo in the filter pattern maybe)?"); } // Interesting but let's keep the build output quiet.