On Wed, 25 Sep 2002, Ryan Cuprak <[EMAIL PROTECTED]> wrote:

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

yes

>  that extends DataType,

no, this is not required.

>  has a default constructor

not necessarily

>  and setter/getter methods for the attributes.

yes.

>  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).

<http://jakarta.apache.org/ant/manual/develop.html#nested-elements>

Stefan

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to