// Throw away any found marker files that we didn't already know about
Set<String> validFinds = cleanSpuriousMarkerFiles(foundDeployed);
validFinds.addAll(newlyAdded);
this.deployed = validFinds;
DeploymentPlan plan = builder.build();
if (plan.getDeploymentActions().size() > 0) {
if (log.isDebugEnabled()) {
for (DeploymentAction action : plan.getDeploymentActions()) {
log.debugf("Deployment plan %s includes action of type %s affecting deployment %s", plan.getId(), action.getType(), action.getDeploymentUnitUniqueName());
}
}
Future<ServerDeploymentPlanResult> future = deploymentManager.execute(plan);
try {
ServerDeploymentPlanResult result = future.get(60, TimeUnit.SECONDS);
// FIXME deal with result
} catch (TimeoutException e) {
// This could be a WARN but deployments could validly take over 60 seconds
log.infof("Deployment plan %s did not complete within 60 seconds. Resuming scanning for deployment changes.", plan.getId());
}
}
log.tracef("Scan complete");
}