[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Ant nobannerlogger in Eclipse?

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.