From 53cfbcda0dc5c8480d7f9a497e3a76efdec4958b Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Wed, 11 Jul 2012 22:34:39 +0000 Subject: [PATCH] LUCENE-4199, LUCENE-4202, LUCENE-4206: Remove noise by not-existing XML CDATA in task; cleanup build.xmls git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1360451 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/build.xml | 5 +---- .../apache/lucene/validation/ForbiddenApisCheckTask.java | 7 +++++-- solr/build.xml | 5 +---- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/lucene/build.xml b/lucene/build.xml index 8d2b8824f77..df46e7d9e22 100644 --- a/lucene/build.xml +++ b/lucene/build.xml @@ -189,11 +189,8 @@ - + - - - diff --git a/lucene/tools/src/java/org/apache/lucene/validation/ForbiddenApisCheckTask.java b/lucene/tools/src/java/org/apache/lucene/validation/ForbiddenApisCheckTask.java index 738ddf365be..993a8322daa 100644 --- a/lucene/tools/src/java/org/apache/lucene/validation/ForbiddenApisCheckTask.java +++ b/lucene/tools/src/java/org/apache/lucene/validation/ForbiddenApisCheckTask.java @@ -343,8 +343,11 @@ public class ForbiddenApisCheckTask extends Task { throw new BuildException("Resource does not exist: " + r); } if (r instanceof StringResource) { - log("Reading inline API signatures...", Project.MSG_INFO); - parseApiFile(new StringReader(((StringResource) r).getValue())); + final String s = ((StringResource) r).getValue(); + if (s != null && s.trim().length() > 0) { + log("Reading inline API signatures...", Project.MSG_INFO); + parseApiFile(new StringReader(s)); + } } else { log("Reading API signatures: " + r, Project.MSG_INFO); parseApiFile(new InputStreamReader(r.getInputStream(), "UTF-8")); diff --git a/solr/build.xml b/solr/build.xml index e3204d10f4b..b4687dd407e 100644 --- a/solr/build.xml +++ b/solr/build.xml @@ -210,11 +210,8 @@ - + - - -