ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: AntUnit
Date Wed, 28 Jan 2009 16:15:59 GMT
On 2009-01-28, <> wrote:

> We are testing something that requires the listener to be
> running. Listeners don't seem to run when calling antunit

This is true.  The project instance running the AntUnit test target
doesn't have any BuildListeners attached to it (other than AntUnit's
own listeners, that is).

This is a use case AntUnit doesn't fully cover.  The dev list (even
more silent than this user list) may be the better place to discuss
how AntUnit could be enhanced to help your case.

Does it help your case if you attach a plainlistener with setting
logLevel to something other than none?  That way the log of the
project under test gets back to the project running the AntUnit task
and then to your BuildListener.

Would improve
the situation in your case?

> or <ant dir="project" target="test"/>.

At least since Ant 1.6.2 this should make the new project inherit the
listeners of the calling project.


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

View raw message