plan = plan.getAbsoluteFile();
}
// Now that we've sorted out all the arguments, do the work
TargetModuleID[] ids = (TargetModuleID[]) modules.toArray(new TargetModuleID[modules.size()]);
boolean multiple = isMultipleTargets(ids);
po = mgr.redeploy(ids, module, plan);
waitForProgress(consoleReader, po);
TargetModuleID[] done = po.getResultTargetModuleIDs();
for (TargetModuleID id : done) {
emit(consoleReader, "Redeployed " + id.getModuleID() + (multiple ? " on " + id.getTarget().getName() : "") + (id.getWebURL() == null ? "" : " @ " + id.getWebURL()));
if (id.getChildTargetModuleID() != null) {