Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » AntRunner and Console output issue
AntRunner and Console output issue [message #298167] Thu, 26 January 2006 09:30 Go to next message
Eclipse UserFriend
Originally posted by: franck.felius.fr.ibm.com

Hello,

We'd like to output on the console an Ant script we are running from our
Eclipse 3.1 plugin.

We tried a solution provided on this newsgroup (SOLUTION Re: AntRunner -
Console Output) using an ILaunchConfigurationWorkingCopy. It works as
expected and we get the output on the console but using
IAntLaunchConfigurationConstants is discouraged. Is this solution outdated ?

We are finally using AntRunner to load the Ant script. It works but we
have to build a library for the extended DefaultLogger (that logs on the
console) outside the plugin and import it on our plugin. If we don't the
class is loaded by the plugin before Ant does on runtime and it fails on
a class cast exception. This seems not be really a nice way.

Is there another solution or an update of the previous solutions ?

Thanks in Advance,
Franck Félius.
Re: AntRunner and Console output issue [message #298572 is a reply to message #298167] Wed, 01 February 2006 08:23 Go to previous message
Sébastien Alonzo is currently offline Sébastien AlonzoFriend
Messages: 94
Registered: July 2009
Member
Has anybody got a clue for this problem ?

Franck Félius wrote:
> Hello,
>
> We'd like to output on the console an Ant script we are running from our
> Eclipse 3.1 plugin.
>
> We tried a solution provided on this newsgroup (SOLUTION Re: AntRunner -
> Console Output) using an ILaunchConfigurationWorkingCopy. It works as
> expected and we get the output on the console but using
> IAntLaunchConfigurationConstants is discouraged. Is this solution
> outdated ?
>
> We are finally using AntRunner to load the Ant script. It works but we
> have to build a library for the extended DefaultLogger (that logs on the
> console) outside the plugin and import it on our plugin. If we don't the
> class is loaded by the plugin before Ant does on runtime and it fails on
> a class cast exception. This seems not be really a nice way.
>
> Is there another solution or an update of the previous solutions ?
>
> Thanks in Advance,
> Franck Félius.
Previous Topic:Listening for editors closed--that is, IEditorPart closed
Next Topic:Problem with JDT debugging connect
Goto Forum:
  


Current Time: Wed Sep 18 17:26:22 GMT 2024

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

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

Back to the top