ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: Two questions: addText( )
Date Mon, 15 Apr 2002 17:23:07 GMT
Well, if you're using addText a lot then:

1) You're probably doing something fishy as its best to keep things codified
in XML attributes and elements.
2) Make your own base class that extends from Task :)

By not having it in Task it disallows element text (PCDATA/CDATA), which I
think is a good thing unless your task explicitly needs it.

    Erik


----- Original Message -----
From: "Edson Alves Pereira" <GuardianOfSteel@netscape.net>
To: <ant-dev@jakarta.apache.org>
Sent: Monday, April 15, 2002 12:49 PM
Subject: Two questions: addText( )


>   Hello folks! I wondering about why i need to define a method named
addText( ) in each Task that i need to receive text from the tag? Why not to
put that method in Task as protected?
>
>   With best wishes,
>   Edson Alves Pereira
>
>
> __________________________________________________________________
> Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/
>
> Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message