Re: Getting Ant to print the arguments of System.out.print() calls

2008-01-08 Thread John Hendrie
Is the buffering done in a logger or is it internal to Ant i.e. does Ant wait for the line break and then flush the buffer to the logger or does logger wait for the line break? Thanks! On Jan 8, 2008 4:27 PM, Dominique Devienne <[EMAIL PROTECTED]> wrote: > On Jan 8, 2008 10:12 AM, Gary Gregory <

Re: Getting Ant to print the arguments of System.out.print() calls

2008-01-08 Thread Dominique Devienne
On Jan 8, 2008 10:12 AM, Gary Gregory <[EMAIL PROTECTED]> wrote: > You could call [1] the Ant task "echo" [2] from your Java code. Which will do a println, not a print. I don't think there's any way around the buffering Ant does, unless the logging code is modified explicitly to support it. --DD

RE: Getting Ant to print the arguments of System.out.print() calls

2008-01-08 Thread Gary Gregory
You could call [1] the Ant task "echo" [2] from your Java code. Gary [1] http://ant.apache.org/manual/antexternal.html [2] http://ant.apache.org/manual/CoreTasks/echo.html > -Original Message- > From: John Hendrie [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 08, 2008 3:55 AM > To:

Re: Getting Ant to print the arguments of System.out.print() calls

2008-01-08 Thread John Hendrie
> > I don't think so; not if your Jython code run within Ant, and you > don't want to hack the Ant code itself. --DD I suspected as much. Thanks to everyone for their help!

Re: Getting Ant to print the arguments of System.out.print() calls

2008-01-08 Thread Dominique Devienne
On Jan 8, 2008 9:16 AM, John Hendrie <[EMAIL PROTECTED]> wrote: > Thanks for the explanation. What I'm trying to do is have an embedded python > console (using Jython). I'm printing a python prompt (>>>) using > System.out.print() then waiting for user input. Is there any other way I > could do thi

Re: Getting Ant to print the arguments of System.out.print() calls

2008-01-08 Thread John Hendrie
Hi, Thanks for the explanation. What I'm trying to do is have an embedded python console (using Jython). I'm printing a python prompt (>>>) using System.out.print() then waiting for user input. Is there any other way I could do this using Ant (without having to go into the internals of Ant)? Than

Re: Getting Ant to print the arguments of System.out.print() calls

2008-01-08 Thread Dominique Devienne
On Jan 8, 2008 5:54 AM, John Hendrie <[EMAIL PROTECTED]> wrote: > public class Main { > public static void main(String[] args) { > System.out.print("Hello"); [...] > } > } > > Ant doesn't output "Hello", I have to exit the Java app for it to appear. > Any ideas on how I can solve th

Re: Getting Ant to print the arguments of System.out.print() calls

2008-01-08 Thread John Hendrie
Hi, Thanks for your reply. The build files are auto-generated by Netbeans 6 and due to the size of them I can't post them here (mailer rejects the email). I've posted the run target below: The variable ${application.args} is: