ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <>
Subject Re: Logging output from the Java task?
Date Wed, 28 Jun 2006 11:04:19 GMT
Vincent Massol wrote:
>>-----Original Message-----
>>From: []
>>Sent: mardi 27 juin 2006 17:52
>>Subject: AW: Logging output from the Java task?
>>>>Do you get the output of <java> when using "Ant alone"?
>>>No. When using <java> there's an "output" attribute to collect
>>>the process's output but it points to a file. AFAIK there's no
>>>way to have the <java> task's output logged when using Ant
>>>1.5.x but that's what I would like to confirm... :-)
>>If you dont set these properties, logs should go to Ant's log - means to
> Rahhhhh! So simple... Over all those years I've never realized that not
> specifying an output would make Ant log the process's output... Dunno why I
> didn't think about it...

Vincent, how else do you think ant users get to see their javac errors?

> Thanks a lot Jan. I'm really glad I asked the question as I was going to
> embark myself on some overly complex solution.

The really slick technique would be to subvert commons-logging and 
java1.4 logging on the forked process and have them redirect to 
something listening for incoming log data, that way you get the 
different log streams demultiplexed. I'm doing this to capture junit 
test logs at different levels.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message