ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: Subelements and logging
Date Thu, 06 Jun 2002 19:26:59 GMT
What do you mean by "subelements"?  I'm assuming you mean non-Ant-dependent
classes that are returned from createXXX or added by add[Configured]XXX
methods.

The best way to output messages is to use the log() methods that are part of
Task.  So it is probably best if your subelement classes communicate with
the task class in some way, and pass the message up to the task to output
via log() methods.  This could be done in a way that still keeps the
subelement classes non-dependent on Ant classes.

    Erik


----- Original Message -----
From: "Kyle Adams" <kadams@gfs.com>
To: <ant-dev@jakarta.apache.org>
Sent: Thursday, June 06, 2002 2:09 PM
Subject: Subelements and logging


What's the preferred way to output messages from subelement of a task?  I've
seen System.out used, but I'm assuming there's a better way.

Kyle


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