Two Laptop Bag*
The moose likes Ant, Maven and Other Build Tools and the fly likes Directing Ant output to Eclipse console Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Directing Ant output to Eclipse console" Watch "Directing Ant output to Eclipse console" New topic
Author

Directing Ant output to Eclipse console

Mejram Larsson
Greenhorn

Joined: Oct 19, 2009
Posts: 3
Hi!

I have created a plugin that calls an Ant script and now I want the output from Ant to show up in the Eclipse console (not in a log file). Does anybody know how to do this?

Any input is appreciated!

-Mejram
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hi there and welcome to Javaranch!

I'm not sure what you mean here, if you run ANT from within Eclipse the output will go to stdout/stderr which is displayed on the Eclipse console..


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I agree; I get all Ant output in a console window. Sometimes I have to switch to it, especially if other output causes a different console window to become active (this is configurable behavior).
Mejram Larsson
Greenhorn

Joined: Oct 19, 2009
Posts: 3
Well, the thing is that I am developing my own plugin which calls an Ant Script. When a user right-clicks on a project in Eclipse there will be an option called "Build" which will call a specific Ant script that builds the project.

So I am not using the regular Ant plugin, I have created my own plugin. And the problem is that I can't direct the output from the Ant runner to the console in Eclipse.

Thanks again for any input!

-Mejram
 
jQuery in Action, 2nd edition
 
subject: Directing Ant output to Eclipse console