ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs Concat.java
Date Fri, 28 Nov 2003 09:29:16 GMT
peterreilly    2003/11/28 01:29:16

  Modified:    src/main/org/apache/tools/ant/taskdefs Tag: ANT_16_BRANCH
                        Concat.java
  Log:
  sync with head
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.28.2.1  +3 -2      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.28
  retrieving revision 1.28.2.1
  diff -u -r1.28 -r1.28.2.1
  --- Concat.java	13 Sep 2003 12:58:33 -0000	1.28
  +++ Concat.java	28 Nov 2003 09:29:16 -0000	1.28.2.1
  @@ -73,6 +73,7 @@
   import org.apache.tools.ant.BuildException;
   import org.apache.tools.ant.DirectoryScanner;
   import org.apache.tools.ant.Project;
  +import org.apache.tools.ant.ProjectComponent;
   import org.apache.tools.ant.Task;
   import org.apache.tools.ant.filters.util.ChainReaderHelper;
   import org.apache.tools.ant.types.FileList;
  @@ -573,7 +574,7 @@
       /**
        * sub element points to a file or contains text
        */
  -    public static class TextElement {
  +    public static class TextElement extends ProjectComponent {
           private String   value = "";
           private boolean  trimLeading = false;
           private boolean  trim = false;
  @@ -645,7 +646,7 @@
            * @param value the text to place inline
            */
           public void addText(String value) {
  -            this.value += value;
  +            this.value += getProject().replaceProperties(value);
           }
   
           /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message