Vincent Massol wrote:

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: mardi 27 juin 2006 17:52
To: user@ant.apache.org
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
Cargo's


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.

-steve


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to