ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adammurd...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/builder ConvertingProjectBuilder.java
Date Sat, 20 Apr 2002 07:32:39 GMT
adammurdoch    02/04/20 00:32:39

  Modified:    container/src/java/org/apache/myrmidon/components/builder
                        ConvertingProjectBuilder.java
  Log:
  Copy text content of task elements when renaming them.  We need a
  something like a MutableConfiguration for these kind of transformations.
  
  Revision  Changes    Path
  1.4       +3 -2      jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/builder/ConvertingProjectBuilder.java
  
  Index: ConvertingProjectBuilder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/builder/ConvertingProjectBuilder.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ConvertingProjectBuilder.java	7 Apr 2002 06:51:40 -0000	1.3
  +++ ConvertingProjectBuilder.java	20 Apr 2002 07:32:39 -0000	1.4
  @@ -18,7 +18,7 @@
    * configuration into a Myrmidon one.
    *
    * @author <a href="mailto:darrell@apache.org">Darrell DeBoer</a>
  - * @version $Revision: 1.3 $ $Date: 2002/04/07 06:51:40 $
  + * @version $Revision: 1.4 $ $Date: 2002/04/20 07:32:39 $
    *
    * @ant.type type="project-builder" name="xml"
    * @ant.type type="project-builder" name="ant"
  @@ -186,9 +186,10 @@
           final DefaultConfiguration newTask =
               new DefaultConfiguration( newTaskName, originalTask.getLocation() );
   
  -        // Copy all attributes and elements of the task.
  +        // Copy all attributes, elements, and value of the task.
           copyAttributes( originalTask, newTask, new HashSet() );
           copyChildren( originalTask, newTask );
  +        newTask.setValue( originalTask.getValue( null ) );
   
           return newTask;
       }
  
  
  

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


Mime
View raw message