Re: Redirect output of Javac task

2005-09-14 Thread Steve Loughran
Martin Burger wrote: Hello! I'm using the Javac task to compile Java sources programmatically. If there is an compile error, the Javac tasks (more specific the com.sun.tools.javac.Main compiler) prints it's error to the console (System.err). Currently, I'm setting System.err to a new PrintS

Redirect output of Javac task

2005-09-13 Thread Martin Burger
Hello! I'm using the Javac task to compile Java sources programmatically. If there is an compile error, the Javac tasks (more specific the com.sun.tools.javac.Main compiler) prints it's error to the console (System.err). Currently, I'm setting System.err to a new PrintStream just before I c