dcsimg
Existing Task within TaskDef task
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ed_Leisman
Posted On:   Monday, November 5, 2001 06:15 AM

I am writing a custom Task.

Inside this task I want to force/allow a tag.

Is there a way to use a defined Task WITHIN another task and automatically inherit its functionality?

Re: Existing Task within TaskDef task

Posted By:   Erik_Hatcher  
Posted On:   Monday, November 5, 2001 05:12 PM

Yes, this is possible. Have look at Ant's Sequential.java ( task) code. It implements the TaskContainer interface, which provides an addTask(Task) method. Ant's introspection and dynamic typing for Ant task parameters is very slick.
About | Sitemap | Contact