Hi,
I'm googling without success to figure out how to make ANT print System.out.println/System.out.print messages in the console. Messages simply don't appear. I haven't found any simple way of doing this. Is there any?
Thanks
Hi,
I'm googling without success to figure out how to make ANT print System.out.println/System.out.print messages in the console. Messages simply don't appear. I haven't found any simple way of doing this. Is there any?
Thanks
Use the echo task
<echo message="Hello, world"/>
<echo message="Hello, file" file="logfile.txt" />
If you want to read the output from a <java> task, use the outputproperty attribute:
<java ... outputproperty="javaoutput" />
<echo message="${javaoutput}" />
The junit task printsummary attribute has a special setting withOutAndErr that:
is the same as on but also includes the output of the test as written to System.out and System.err.
Example use here.