You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Asaf Mesika <as...@gmail.com> on 2006/05/22 15:29:41 UTC
Can't see build file output in Console view, using -logger option
Hi,
I'm using Ant from within Eclipse.
I'm developing a logger of my own for Ant, and I got stuck in early stage:
Running the default logger.
What did I do?
---------------------
I added to the arguments of Run Ant Configuration the following line:
-logger org.apache.tools.ant.DefaultLogger<http://ant.apache.org/manual/listeners.html#DefaultLogger>
>From some reason, I can't see any output.
If I remove this argument, everything works out fine.
If I'm running it from command line, and not from WSAD, the output is shown
properly.
Someone has any idea why?
Thank you.
Asaf
Re: Can't see build file output in Console view, using -logger option
Posted by Darin Swanson <Da...@us.ibm.com>.
You can see the whole Ant command line invocation within Eclipse by
opening the Debug view and right clicking on the Ant
process>Properties>Process Information>Command Line
And yes, we have a logger and an input handler....no surprises there.
Darins
Steve Loughran <st...@apache.org>
05/22/2006 09:04 AM
Please respond to
"Ant Users List"
To
Ant Users List <us...@ant.apache.org>
cc
Subject
Re: Can't see build file output in Console view, using -logger option
Asaf Mesika wrote:
>> -----Original Message-----
>> From: Steve Loughran [mailto:stevel@apache.org]
>> Sent: Monday, May 22, 2006 5:41 PM
>> To: Ant Users List
>> Subject: Re: Can't see build file output in Console view, using -logger
>> option
>>
>> Asaf Mesika wrote:
>>> Hi,
>>>
>>> I'm using Ant from within Eclipse.
>>>
>>> I'm developing a logger of my own for Ant, and I got stuck in early
>> stage:
>>> Running the default logger.
>>>
>>> What did I do?
>>> ---------------------
>>> I added to the arguments of Run Ant Configuration the following line:
>>> -logger
>>>
>> org.apache.tools.ant.DefaultLogger<
http://ant.apache.org/manual/listeners.
>> html#DefaultLogger>
>>>
>>> From some reason, I can't see any output.
>>> If I remove this argument, everything works out fine.
>>> If I'm running it from command line, and not from WSAD, the output is
>> shown
>>> properly.
>>>
>>> Someone has any idea why?
>>>
>> Presumably Eclipse's own logger and yours are incompatible. Ant only
>
> [Asaf] Incompatible? I've used Ant's default logger.
>> allows one logger, multiple listeners. Eclipse needs a logger to show
>> the output.
>
> [Asaf] I didn't understand that last one: Eclipse needs a logger.
> Eclipse has a console view, through which it displays the error and
output
> stream.
yes, and presumably its sneaking in its own -logger command to redirect
all output in, the same way it (probably) provides its own input handler
via -noinput.
To put it differently: How do you think eclipse is routing input to and
from ant?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Can't see build file output in Console view, using -logger option
Posted by Steve Loughran <st...@apache.org>.
Asaf Mesika wrote:
>> -----Original Message-----
>> From: Steve Loughran [mailto:stevel@apache.org]
>> Sent: Monday, May 22, 2006 5:41 PM
>> To: Ant Users List
>> Subject: Re: Can't see build file output in Console view, using -logger
>> option
>>
>> Asaf Mesika wrote:
>>> Hi,
>>>
>>> I'm using Ant from within Eclipse.
>>>
>>> I'm developing a logger of my own for Ant, and I got stuck in early
>> stage:
>>> Running the default logger.
>>>
>>> What did I do?
>>> ---------------------
>>> I added to the arguments of Run Ant Configuration the following line:
>>> -logger
>>>
>> org.apache.tools.ant.DefaultLogger<http://ant.apache.org/manual/listeners.
>> html#DefaultLogger>
>>>
>>> From some reason, I can't see any output.
>>> If I remove this argument, everything works out fine.
>>> If I'm running it from command line, and not from WSAD, the output is
>> shown
>>> properly.
>>>
>>> Someone has any idea why?
>>>
>> Presumably Eclipse's own logger and yours are incompatible. Ant only
>
> [Asaf] Incompatible? I've used Ant's default logger.
>> allows one logger, multiple listeners. Eclipse needs a logger to show
>> the output.
>
> [Asaf] I didn't understand that last one: Eclipse needs a logger.
> Eclipse has a console view, through which it displays the error and output
> stream.
yes, and presumably its sneaking in its own -logger command to redirect
all output in, the same way it (probably) provides its own input handler
via -noinput.
To put it differently: How do you think eclipse is routing input to and
from ant?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: Can't see build file output in Console view, using -logger option
Posted by Asaf Mesika <as...@gmail.com>.
> -----Original Message-----
> From: Steve Loughran [mailto:stevel@apache.org]
> Sent: Monday, May 22, 2006 5:41 PM
> To: Ant Users List
> Subject: Re: Can't see build file output in Console view, using -logger
> option
>
> Asaf Mesika wrote:
> > Hi,
> >
> > I'm using Ant from within Eclipse.
> >
> > I'm developing a logger of my own for Ant, and I got stuck in early
> stage:
> > Running the default logger.
> >
> > What did I do?
> > ---------------------
> > I added to the arguments of Run Ant Configuration the following line:
> > -logger
> >
> org.apache.tools.ant.DefaultLogger<http://ant.apache.org/manual/listeners.
> html#DefaultLogger>
> >
> >
> > From some reason, I can't see any output.
> > If I remove this argument, everything works out fine.
> > If I'm running it from command line, and not from WSAD, the output is
> shown
> > properly.
> >
> > Someone has any idea why?
> >
>
> Presumably Eclipse's own logger and yours are incompatible. Ant only
[Asaf] Incompatible? I've used Ant's default logger.
> allows one logger, multiple listeners. Eclipse needs a logger to show
> the output.
[Asaf] I didn't understand that last one: Eclipse needs a logger.
Eclipse has a console view, through which it displays the error and output
stream.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Can't see build file output in Console view, using -logger option
Posted by Steve Loughran <st...@apache.org>.
Asaf Mesika wrote:
> Hi,
>
> I'm using Ant from within Eclipse.
>
> I'm developing a logger of my own for Ant, and I got stuck in early stage:
> Running the default logger.
>
> What did I do?
> ---------------------
> I added to the arguments of Run Ant Configuration the following line:
> -logger
> org.apache.tools.ant.DefaultLogger<http://ant.apache.org/manual/listeners.html#DefaultLogger>
>
>
> From some reason, I can't see any output.
> If I remove this argument, everything works out fine.
> If I'm running it from command line, and not from WSAD, the output is shown
> properly.
>
> Someone has any idea why?
>
Presumably Eclipse's own logger and yours are incompatible. Ant only
allows one logger, multiple listeners. Eclipse needs a logger to show
the output.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org