Browse Source

Ensure text is added

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274867 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 22 years ago
parent
commit
bf8f58b721
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      src/main/org/apache/tools/ant/taskdefs/Concat.java

+ 2
- 5
src/main/org/apache/tools/ant/taskdefs/Concat.java View File

@@ -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;
}

/**


Loading…
Cancel
Save