There is a difference between using a -logger and -listener. The former may use a log file and the latter does not get this set. The commons logger code assumes that it is passed the log stream in both cases. The fix is just to initialize the out and err streams in the commons logger class. PR: 27373 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276225 13f79535-47bb-0310-9956-ffa450edef68master