@Override public String getWebURL() { if (webUrl != null) { return webUrl; } return original.getWebURL(); }
public String getWebURL() { return delegate().getWebURL(); } public String toString() {
if (ch != null) { for (int i = 0; i < ch.length; i++) { webUrl = ch [i].getWebURL(); if (webUrl != null) { moduleID = ch[i];
for(int i = 0; i < done.length; i++) { TargetModuleID id = done[i]; consoleReader.printString(DeployUtils.reformat((getAction()+" "+id.getModuleID()+((multiple && id.getTarget() != null) ? " on "+ id.getTarget().getName() : "")+(id.getWebURL() == null || !getAction().equals("Started") ? "" : " @ "+id.getWebURL())), 4, 72)); if(id.getChildTargetModuleID() != null) { for (int j = 0; j < id.getChildTargetModuleID().length; j++) { TargetModuleID child = id.getChildTargetModuleID()[j]; consoleReader.printString(DeployUtils.reformat(" `-> "+child.getModuleID()+(child.getWebURL() == null || getAction().toLowerCase().indexOf("started") == -1 ? "" : " @ "+child.getWebURL()),4, 72)); for (int j = 0; j < childs.getChildTargetModuleID().length; j++) { TargetModuleID child = childs.getChildTargetModuleID()[j]; consoleReader.printString(DeployUtils.reformat(" `-> "+child.getModuleID()+(child.getWebURL() == null || getAction().toLowerCase().indexOf("started") == -1 ? "" : " @ "+child.getWebURL()),4, 72));
for (TargetModuleID result : results) { out.printString(DeployUtils.reformat( getAction() + " " + result.getModuleID() + (multipleTargets ? " to " + result.getTarget().getName() : "") + (result.getWebURL() == null || !getAction().equals("Deployed") ? "" : " @ " + result.getWebURL()), 4, 72)); if (result.getChildTargetModuleID() != null) { for (int j = 0; j < result.getChildTargetModuleID().length; j++) { TargetModuleID child = result.getChildTargetModuleID()[j]; out.printString(DeployUtils.reformat(" `-> " + child.getModuleID() + (child.getWebURL() == null || !getAction().equals("Deployed") ? "" : " @ " + child.getWebURL()), 4, 72));
if (ch != null) { for (int i = 0; i < ch.length; i++) { webUrl = ch[i].getWebURL(); if (webUrl != null) { break;
+ result.getModuleID() + (multipleTargets ? " to " + result.getTarget().getName() : "") + (result.getWebURL() == null || !getAction().equals("Deployed") ? "" : " @ " + result.getWebURL()), 4, 72)); if (result.getChildTargetModuleID() != null) { for (int j = 0; j < result.getChildTargetModuleID().length; j++) { consoleReader.printString(DeployUtils.reformat(" `-> " + child.getModuleID() + (child.getWebURL() == null || !getAction().equals("Deployed") ? "" : " @ " + child.getWebURL()), 4, 72)); + result.getModuleID() + (multipleTargets ? " to " + result.getTarget().getName() : "") + (result.getWebURL() == null || !getAction().equals("Deployed") ? "" : " @ " + result.getWebURL()), 4, 72)); if (result.getChildTargetModuleID() != null) { for (int j = 0; j < result.getChildTargetModuleID().length; j++) { consoleReader.printString(DeployUtils.reformat(" `-> " + child.getModuleID() + (child.getWebURL() == null || !getAction().equals("Deployed") ? "" : " @ " + child.getWebURL()), 4, 72)); emit(consoleReader, "Redeployed " + id.getModuleID() + (multiple ? " on " + id.getTarget().getName() : "") + (id.getWebURL() == null ? "" : " @ " + id.getWebURL())); if (id.getChildTargetModuleID() != null) { for (int j = 0; j < id.getChildTargetModuleID().length; j++) {
final MonitorProgressObject updateCRObject = new MonitorProgressObject(dm, (Hk2TargetModuleID) targetModuleID, CommandType.REDEPLOY); progressObject.addProgressListener(new UpdateContextRoot(updateCRObject,(Hk2TargetModuleID) targetModuleID, dm.getServerInstance(), ! (null == targetModuleID.getWebURL()))); final GlassfishModule commonSupport = dm.getCommonServerSupport(); final GlassfishModule2 commonSupport2 = (commonSupport instanceof GlassfishModule2 ?