ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: [Q:] Writing a simple Ant task?
Date Thu, 26 Sep 2002 05:58:50 GMT
On Wed, 25 Sep 2002, Ryan Cuprak <> wrote:

>  To accomplish this, you need to write a param class


>  that extends DataType,

no, this is not required.

>  has a default constructor

not necessarily

>  and setter/getter methods for the attributes.


>  In the mytask (extends Task), you add a method "addParam" which
>  takes your param class.

One option.

Another option is to have a method addConfiguredParam and finally you
could have a no arg method createParam that returns an param object
(in which case param doesn't need a no-arg constructor).



To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message