OutputStream logger = new FileOutputStream(getLogFile());
listener = new StreamBuildListener(logger, Charset.defaultCharset());
listener.started(getCauses());
RunListener.fireStarted(this, listener);
updateSymlinks(listener);
FlowDefinition definition = getParent().getDefinition();
if (definition == null) {
listener.error("No flow definition, cannot run");
return;
}
Owner owner = new Owner(this);
execution = definition.create(owner, getAllActions());
FlowExecutionList.get().register(owner);
execution.addListener(new GraphL());
completed = new AtomicBoolean();
logsToCopy = new LinkedHashMap<String,Long>();
checkouts = new LinkedList<SCMCheckout>();