ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@eng.sun.com
Subject Re: cvs commit: jakarta-ant/src/main/org/apache/tools/ant TaskAdapter.java Project.java ProjectHelper.java
Date Thu, 27 Jan 2000 22:45:09 GMT
> >   That allows Tomcat ( and other projects) to define normal Beans and still
> >   be able to script them.
> > 
> >   The usage is identical with normal Task-extending Beans.
> 
> Could you please elaborate more on this?

Right now you have to extend Task and implement setters and 
   void execute() throws BuildException 

With the patch you can use arbitrary objects that implement setters and
   void execute() throws Exception
The change is usefull if you want to write tasks without dependencies
on Ant. ( some objects are not only Build-related, but can be used in Ant
too).

Examples:
- GTest object ( used to tomcat, but it can be included in Ant scripts)
- Various configuration tasks ( generate Apache and tomcat config ) - 
usefull for Ant build and install but used in an admin tool too.


Costin


Mime
View raw message