Skip to main content



      Home
Home » Newcomers » Newcomers » Ant nobannerlogger in Eclipse?
Ant nobannerlogger in Eclipse? [message #56282] Fri, 22 April 2005 10:03 Go to next message
Eclipse UserFriend
Originally posted by: mikecepek.FIX.yahoooooo.com

Is there a way to suppress the empty target output from Ant in Eclipse?

In the past I have used '-logger NoBannerLogger' on the Ant command-line.
But adding this to the Ant Arguments list (in the External Tools dialog in
Eclipse 3.1.0) causes my builds to just hang. Adding '-verbose' didn't
help either; the build still hung with no console output at all.

I suspect that Eclipse is using Ant's AnsiColorLogger by default to
generate the output for the Console window. This might also explain the
hang when I attempt to overwrite it as mentioned above.

Here is an example of my current Eclipse Console window Ant output:

Buildfile: C:\mike\Eclipse\src\java\com\spanlink\sqm\common\build.xml
init:
prereqs:
prereq-1:
prereq-2:
prereq-3:
prereq-5:
prereq-6:
compile:
build:
build:
build-test:
BUILD SUCCESSFUL
Total time: 1 second

All those "empty" target messages are just noise. Using NoBannerLogger
would reduce the above to just:

Buildfile: C:\mike\Eclipse\src\java\com\spanlink\sqm\common\build.xml
BUILD SUCCESSFUL
Total time: 1 second

Obviously it helps even more with more complex (e.g. nested) build
scripts. The less noise there is, the easier it is for busy programmers
to find error and warning messages in the build output.

If anyone can recommend a more appropriate forum for this question, I'd
appreciate that as well. I'm pretty sure this is an Eclipse issue (rather
than anything specific to the Apache Ant project).

Thank you for your time.
Re: Ant nobannerlogger in Eclipse? [message #56284 is a reply to message #56282] Fri, 22 April 2005 10:11 Go to previous message
Eclipse UserFriend
This is an Eclipse issue: see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=84608

We use our own custom loggers for integration within Eclipse and since only
one logger is allowed...

So there is no way currently to suppress the empty target output from Ant in
Eclipse.
Please log an enhancement for this feature (but it will be deferred to post
3.1 as we are no longer adding no features to Eclipse in the 3.1 timeframe).

Thanks
Darins

"Mike Cepek" <mikecepek@FIX.yahoooooo.com> wrote in message
news:c208128e5f960bb3f37b4436a66331c3$1@www.eclipse.org...
> Is there a way to suppress the empty target output from Ant in Eclipse?
>
> In the past I have used '-logger NoBannerLogger' on the Ant command-line.
> But adding this to the Ant Arguments list (in the External Tools dialog in
> Eclipse 3.1.0) causes my builds to just hang. Adding '-verbose' didn't
> help either; the build still hung with no console output at all.
>
> I suspect that Eclipse is using Ant's AnsiColorLogger by default to
> generate the output for the Console window. This might also explain the
> hang when I attempt to overwrite it as mentioned above.
>
> Here is an example of my current Eclipse Console window Ant output:
>
> Buildfile: C:\mike\Eclipse\src\java\com\spanlink\sqm\common\build.xml
> init:
> prereqs:
> prereq-1:
> prereq-2:
> prereq-3:
> prereq-5:
> prereq-6:
> compile:
> build:
> build:
> build-test:
> BUILD SUCCESSFUL
> Total time: 1 second
>
> All those "empty" target messages are just noise. Using NoBannerLogger
> would reduce the above to just:
>
> Buildfile: C:\mike\Eclipse\src\java\com\spanlink\sqm\common\build.xml
> BUILD SUCCESSFUL
> Total time: 1 second
>
> Obviously it helps even more with more complex (e.g. nested) build
> scripts. The less noise there is, the easier it is for busy programmers
> to find error and warning messages in the build output.
>
> If anyone can recommend a more appropriate forum for this question, I'd
> appreciate that as well. I'm pretty sure this is an Eclipse issue (rather
> than anything specific to the Apache Ant project).
>
> Thank you for your time.
>
>
Previous Topic:Debugging in Eclipse
Next Topic:Implementing editor-dependant menus
Goto Forum:
  


Current Time: Thu May 08 13:36:04 EDT 2025

Powered by FUDForum. Page generated in 0.10633 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top