You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "dion gillard (JIRA)" <co...@jakarta.apache.org> on 2005/01/04 08:29:16 UTC

[jira] Created: (JELLY-183) jelly-ant-tags TaskContainer Support

jelly-ant-tags TaskContainer Support
------------------------------------

         Key: JELLY-183
         URL: http://issues.apache.org/jira/browse/JELLY-183
     Project: jelly
        Type: New Feature
  Components: taglib.ant  
    Reporter: dion gillard
 Attachments: taskcontainer.patch

-- Moved from Bugzilla 28812 --

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();

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (JELLY-183) jelly-ant-tags TaskContainer Support

Posted by "dion gillard (JIRA)" <co...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/JELLY-183?page=history ]

dion gillard updated JELLY-183:
-------------------------------

    Attachment: taskcontainer.patch

> jelly-ant-tags TaskContainer Support
> ------------------------------------
>
>          Key: JELLY-183
>          URL: http://issues.apache.org/jira/browse/JELLY-183
>      Project: jelly
>         Type: New Feature
>   Components: taglib.ant
>     Reporter: dion gillard
>  Attachments: taskcontainer.patch
>
> -- Moved from Bugzilla 28812 --
> 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();

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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