Don't use System.out - use the build-in "log" method defined in the Task ant class.