commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28812] New: - jelly-ant-tags TaskContainer Support
Date Thu, 06 May 2004 15:59:38 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28812>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28812

jelly-ant-tags TaskContainer Support

           Summary: jelly-ant-tags TaskContainer Support
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Jelly
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: j.illig@micromata.de


I have added support for child-anttasks as described in
http://ant.apache.org/manual/develop.html#writingowntask when using a
TaskContainer-implementation. These are used in webtest-project by Canoo for
example.

diff follows:

Index: AntTag.java
===================================================================
RCS file:
/home/cvspublic/jakarta-commons/jelly/jelly-tags/ant/src/java/org/apache/commons/jelly/tags/ant/AntTag.java,v
retrieving revision 1.27
diff -u -r1.27 AntTag.java
--- AntTag.java 25 Feb 2004 01:23:59 -0000      1.27
+++ AntTag.java 6 May 2004 15:35:56 -0000
@@ -181,6 +181,10 @@
                 // now lets set all the attributes of the child elements
                 // XXXX: to do!
     
+               if (parentTask instanceof TaskContainer) {
+                   ((TaskContainer)parentTask).addTask(task);
+               }
+        
                 // now we're ready to invoke the task
                 // XXX: should we call execute() or perform()?
                 task.perform();

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


Mime
View raw message