diff --git a/src/main/org/apache/tools/ant/taskdefs/Concat.java b/src/main/org/apache/tools/ant/taskdefs/Concat.java index ef2a035f4..ff4b2b342 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Concat.java +++ b/src/main/org/apache/tools/ant/taskdefs/Concat.java @@ -571,7 +571,7 @@ public class Concat extends Task { * sub element points to a file or contains text */ public static class TextElement { - private String value; + private String value = ""; private boolean trimLeading = false; private boolean trim = false; private boolean filtering = true; @@ -642,10 +642,7 @@ public class Concat extends Task { * @param value the text to place inline */ public void addText(String value) { - if (value.trim().length() == 0) { - return; - } - this.value = value; + this.value += value; } /**