In Ant�s CLI class "Main" on line 508 is written:
if (logTo != null) {
out = logTo;
err = logTo;
System.setOut(out);
System.setErr(out);
}
logTo is set before while handling the cli argument "-logfile" as
PrintStream.
1) we use the long form like present, so replace the last statement:
if (logTo != null) {
out = logTo;
err = logTo;
System.setOut(out);
System.setErr(err); // <---- err instead out
}
2) because out and err are set to the same
if (logTo != null) {
System.setOut(logTo);
System.setErr(logTo);
}
I prefer the first one because there is more documented.
Jan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]