ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-ant/proposal/embed/src/java/org/apache/tools/ant UnknownElement2.java
Date Fri, 06 Dec 2002 22:59:53 GMT
costin      2002/12/06 14:59:53

  Modified:    proposal/embed/src/java/org/apache/tools/ant
                        UnknownElement2.java
  Log:
  Replace the UE with the task as soon as the task is constructed.
  
  This allows Script tasks to work in most cases- and any other task that
  requires Task in the tree.
  
  It is the current behavior - but I think it is not the best solution.
  
  Revision  Changes    Path
  1.3       +6 -0      jakarta-ant/proposal/embed/src/java/org/apache/tools/ant/UnknownElement2.java
  
  Index: UnknownElement2.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/embed/src/java/org/apache/tools/ant/UnknownElement2.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- UnknownElement2.java	21 Nov 2002 22:40:45 -0000	1.2
  +++ UnknownElement2.java	6 Dec 2002 22:59:53 -0000	1.3
  @@ -150,11 +150,17 @@
               task.setOwningTarget(this.getOwningTarget());
               task.init();
               task.setRuntimeConfigurableWrapper(getWrapper2());
  +
  +            // For Script to work. Ugly
  +            // The reference is replaced by RuntimeConfigurable
  +            this.getOwningTarget().replaceChild(this, (Task)realThing);
           }
   
           handleChildren(realThing, getWrapper2());
   
           getWrapper2().maybeConfigure(getProject());
  +
  +
       }
   
       /**
  
  
  

--
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