conor 2003/07/20 02:42:22
Modified: src/main/org/apache/tools/ant/taskdefs Concat.java
Log:
Ensure text is added
Revision Changes Path
1.23 +2 -5 ant/src/main/org/apache/tools/ant/taskdefs/Concat.java
Index: Concat.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Concat.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -w -u -r1.22 -r1.23
--- Concat.java 7 Jul 2003 14:39:13 -0000 1.22
+++ Concat.java 20 Jul 2003 09:42:21 -0000 1.23
@@ -571,7 +571,7 @@
* 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 @@
* @param value the text to place inline
*/
public void addText(String value) {
- if (value.trim().length() == 0) {
- return;
- }
- this.value = value;
+ this.value += value;
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]