From fb90584e35fde4b892b8848eddd88b4ad993f86a Mon Sep 17 00:00:00 2001 From: Magesh Umasankar Date: Wed, 21 Nov 2001 08:14:45 +0000 Subject: [PATCH] Lines in manifest that have nothing but spaces are treated as empty lines just like JDK's Jar utility does. PR: 4840 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269974 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/Manifest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Manifest.java b/src/main/org/apache/tools/ant/taskdefs/Manifest.java index 06fc8e563..3f576c6e2 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Manifest.java +++ b/src/main/org/apache/tools/ant/taskdefs/Manifest.java @@ -280,7 +280,7 @@ public class Manifest { Attribute attribute = null; while (true) { String line = reader.readLine(); - if (line == null || line.length() == 0) { + if (line == null || line.trim().length() == 0) { return null; } if (line.charAt(0) == ' ') {