}
listener.getLogger().println("Publishing rails " + task + " report...");
ByteArrayOutputStream out = new ByteArrayOutputStream();
BuildListener stringListener = new StreamBuildListener(out);
if (rake.perform(build, launcher, stringListener)) {
buildAction(out, build);
} else {
return fail(build, listener, stringListener.toString());
}
return true;
}