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
, 2008 3:55 AM > To: user@ant.apache.org > Subject: Getting Ant to print the arguments of System.out.print() calls > > Hi, > > I'm sorry if this is a really obvious question but I'm having trouble > getting Ant to print System.out.print() calls. The archive throws u

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

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

2008-01-08 Thread Jan.Materne
> 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

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
t; Von: John Hendrie [mailto:[EMAIL PROTECTED] > > Gesendet: Dienstag, 8. Januar 2008 12:55 > > An: user@ant.apache.org > > Betreff: Getting Ant to print the arguments of > > System.out.print() calls > > > > Hi, > > > > I'm sorry if this is a rea

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

2008-01-08 Thread Jan.Materne
What is your buildfile? Jan > -Ursprüngliche Nachricht- > Von: John Hendrie [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 8. Januar 2008 12:55 > An: user@ant.apache.org > Betreff: Getting Ant to print the arguments of > System.out.print() calls > > Hi, >

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

2008-01-08 Thread John Hendrie
Hi, I'm sorry if this is a really obvious question but I'm having trouble getting Ant to print System.out.print() calls. The archive throws up a few related posts but with no answers. I have a simple example: public class Main { public static void main(String[] args) { System.out.pr