commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wer...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/ant TaskTag.java
Date Wed, 05 Jun 2002 17:14:38 GMT
werken      2002/06/05 10:14:38

  Modified:    jelly/src/java/org/apache/commons/jelly/tags/ant
                        TaskTag.java
  Log:
  Patch to allow it to work with ant-1.4.x instead of requiring 1.5 API.
  
  Revision  Changes    Path
  1.6       +4 -1      jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/ant/TaskTag.java
  
  Index: TaskTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/ant/TaskTag.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TaskTag.java	5 Jun 2002 17:05:21 -0000	1.5
  +++ TaskTag.java	5 Jun 2002 17:14:38 -0000	1.6
  @@ -70,6 +70,7 @@
   
   import org.apache.tools.ant.Task;
   import org.apache.tools.ant.Project;
  +import org.apache.tools.ant.ProjectHelper;
   
   /** 
    * A tag which invokes an Ant Task
  @@ -117,7 +118,9 @@
           // normal property-deref routines.
           Project project = task.getProject();
   
  -        String newValue = project.replaceProperties( (String) value );
  +        String newValue = ProjectHelper.replaceProperties( project,
  +                                                           (String) value,
  +                                                           project.getProperties() );
   
           super.setAttribute( name,
                               newValue );
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message