// the properties echoed out in the log (e.g. if they contain sensitive passwords)
// we should do this after we set the properties.
project.addBuildListener(new LoggerAntBuildListener(target, logFileOutput, Project.MSG_DEBUG));
if (logStdOut) {
PrintWriter stdout = new PrintWriter(System.out);
project.addBuildListener(new LoggerAntBuildListener(target, stdout, Project.MSG_INFO));
}
if (properties != null) {
for (Map.Entry<Object, Object> property : properties.entrySet()) {
project.setProperty(property.getKey().toString(), property.getValue().toString());