public Throwable getProblem() { return parent.getProblem(); }
public Throwable getProblem() { return parent.getProblem(); }
Throwable problem = context.getProblem(); if (problem != null) deploymentsInError.put(context.getName(), problem);
deploymentsInError.put(context.getName(), getRootCause(context.getProblem()));
/** * Add a context. * * @param context the context * @param addToDeploy should we add to deploy collection */ private void addContext(DeploymentContext context, boolean addToDeploy) { allDeployments.put(context.getName(), context); if (context.getState() == DeploymentState.ERROR) { log.debug("Not scheduling addition of context already in error: " + context.getName() + " reason=" + context.getProblem()); return; } context.setState(DeploymentState.DEPLOYING); DeploymentContext parent = context.getParent(); log.debug("Scheduling deployment: " + context.getName() + " parent=" + parent); // Process the top level only if (context.isTopLevel() && addToDeploy) deploy.add(context); // Add all the children List<DeploymentContext> children = context.getChildren(); if (children != null) { for (DeploymentContext child : children) addContext(child, addToDeploy); } }