diff --git a/src/main/org/apache/tools/ant/taskdefs/Manifest.java b/src/main/org/apache/tools/ant/taskdefs/Manifest.java index 2c62575f5..bc5bd8e14 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Manifest.java +++ b/src/main/org/apache/tools/ant/taskdefs/Manifest.java @@ -275,9 +275,18 @@ public class Manifest { if (line.charAt(0) == ' ') { // continuation line if (attribute == null) { - throw new ManifestException("Can't start an attribute with a continuation line " + line); + if (name != null) { + // a continuation on the first line is a continuation of the name - concatenate + // this line and the name + name += line.substring(1); + } + else { + throw new ManifestException("Can't start an attribute with a continuation line " + line); + } + } + else { + attribute.addContinuation(line); } - attribute.addContinuation(line); } else { attribute = new Attribute(line);