File contentFile = moduleInfo.getContentFile();
targetModuleIDs[i] = new TargetModuleIDImpl(target, moduleID, null, type, contentFile);
}
} catch (IOException e) {
String message = MESSAGES.deploymentValidationFailed();
DeploymentStatus status = new DeploymentStatusImpl(StateType.FAILED, CommandType.DISTRIBUTE, ActionType.EXECUTE, message);
ROOT_LOGGER.errorf(e, message);
state.cleanup();
return new ProgressObjectImpl(status, targetModuleIDs);
}
// start the deployment process
DeploymentStatus status = new DeploymentStatusImpl(StateType.RUNNING, CommandType.DISTRIBUTE, ActionType.EXECUTE, null);
ProgressObject progress = new ProgressObjectImpl(status, targetModuleIDs);
DeploymentWorker worker = new DeploymentWorker(progress, state);
worker.start();