ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darin Swanson <Darin_Swan...@us.ibm.com>
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.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=80435
This is fixed in Eclipse 3.1 and newer.

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

Thanks
Darins
http://www.runnerwhocodes.blogspot.com/




Steve Loughran <stevel@apache.org> 
11/06/2007 04:08 AM
Please respond to
"Ant Users List" <user@ant.apache.org>


To
Ant Users List <user@ant.apache.org>
cc

Subject
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 org.apache.tools.ant.XmlLogger" that 
happens
> to be cited even in the Ant manual.
> 
> To be more precise: it seems like the parameter -listener doesn't work 
when
> you launch Ant from INSIDE Eclipse (Run -> Ant Build...) or as an 
Eclipse
> 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 
fixed
> 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 
break.

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

-tseve

-- 
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



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