ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darin Swanson <>
Subject Re: Headless Ant: problems with loggers and listeners
Date Tue, 06 Nov 2007 15:43:08 GMT
I have been working with Gab within the Eclipse newsgroups.
Eclipse had a bug in its 3.0 release (3 yrs ago) that caused problems with 
the XMLLogger.
This is fixed in Eclipse 3.1 and newer.

You can add additional listeners, just not change the logger.


Steve Loughran <> 
11/06/2007 04:08 AM
Please respond to
"Ant Users List" <>

Ant Users List <>

Re: Headless Ant: problems with loggers and listeners

Gabriele Bodda wrote:
> Hi, I've found one more element.
> I got exactly the same error if I launch Ant through Eclipse with ANY
> listener, even with "-listener" that 
> to be cited even in the Ant manual.
> To be more precise: it seems like the parameter -listener doesn't work 
> you launch Ant from INSIDE Eclipse (Run -> Ant Build...) or as an 
> application (at the end, it should be the same...)
> So, it isn't directly related to CC (if I run "ant" from the command 
line it
> works fine even with all the CC listeners and loggers), but I need it 
> if I want to use CC with my build script... Any ideas? It seems really
> strange to me that you can't use the -listener parameter when you run a
> build inside eclipse!
> Thanks,
> Gab

this isnt that strange, its the same for all the IDES. Ants 
listener/logger /input services are there to glue ant's IO with the 
outside world. When you build under eclipse, you get everything 
happening under the IDE. If you could switch logger, everything would 

This isnt an ant feature, it will be the IDE stripping out any -listener 
options before it gets down to ant.


Steve Loughran        
Author: Ant in Action 

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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message