for (int i = 0; done == false && i < tags.length; ++i) Element child = getOptionalChild(element, tags[i]); if (child == null) case CLIENT: case CONNECTOR: fileName = getElementContent(child); alternativeDD = getElementContent(getOptionalChild(element, "alt-dd")); break; case WEB: fileName = getElementContent(getUniqueChild(child, "web-uri")); webContext = getElementContent(getOptionalChild(child, "context-root")); alternativeDD = getElementContent(getOptionalChild(element, "alt-dd")); break;
public void importXml(Element rootElement) throws DeploymentException { String rootTag = rootElement.getOwnerDocument().getDocumentElement().getTagName(); if (rootTag.equals("application")) importXml(rootElement, false); else if (rootTag.equals("jboss-app")) importXml(rootElement, true); else throw new DeploymentException("Unrecognized root tag: " + rootTag); }
if (module.getFileName().equals(dep.getSimpleName())) contextRoot = module.getWebContext();
if (module.getFileName().equals(dep.getSimpleName())) contextRoot = module.getWebContext();
if (module.getFileName().equals(dep.getSimpleName())) contextRoot = module.getWebContext();