this.path = XmlUtils.getMandatoryAttribute(pathNode, AtsProjectConfiguration.NODE_ATTRIBUTE_PATH); boolean isAbsolutePath = XmlUtils.getBooleanAttribute(pathNode, "absolute", false); if (!isFile) {
this.agentZip = XmlUtils.getMandatoryAttribute(agentZipElements.get(0), AtsProjectConfiguration.NODE_ATTRIBUTE_PATH);
String agentAlias = XmlUtils.getMandatoryAttribute(agentNode, NODE_ATTRIBUTE_ALIAS); if (agents.containsKey(agentAlias)) { throw new AtsConfigurationException("'" + agentAlias + "' is not a unique agent alias"); String applicationAlias = XmlUtils.getMandatoryAttribute(applicationNode, NODE_ATTRIBUTE_ALIAS); if (applications.containsKey(applicationAlias)) { throw new AtsConfigurationException("'" + applicationAlias
this.host = XmlUtils.getMandatoryAttribute(applicationNode, AtsProjectConfiguration.NODE_APPLICATION_PROPERTY_HOST); this.isLocalHost = HostUtils.isLocalHost(host); : "Application"); this.home = XmlUtils.getMandatoryAttribute(applicationNode, AtsProjectConfiguration.NODE_ATTRIBUTE_HOME); this.isUnix = this.home.charAt(0) == '/'; this.systemUser = XmlUtils.getMandatoryAttribute(applicationNode, AtsProjectConfiguration.NODE_APPLICATION_PROPERTY_SYSTEM_USER); this.systemPassword = XmlUtils.getAttribute(applicationNode,
@Override protected void loadMoreInfo( Element applicationNode ) { Element statusCommandNode = getNoMoreThanOneChild(applicationNode, NODE_STATUS_COMMAND); if (statusCommandNode != null) { statusCommandInfo.url = XmlUtils.getMandatoryAttribute(statusCommandNode, NODE_ATTRIBUTE_URL); statusCommandInfo.urlSearchToken = XmlUtils.getMandatoryAttribute(statusCommandNode, NODE_ATTRIBUTE_URL_SEARCH_TOKEN); statusCommandInfo.command = XmlUtils.getAttribute(statusCommandNode, NODE_ATTRIBUTE_COMMAND); statusCommandInfo.stdoutSearchToken = XmlUtils.getAttribute(statusCommandNode, NODE_ATTRIBUTE_STDOUT_SEARCH_TOKEN); } Element startCommandNode = getNoMoreThanOneChild(applicationNode, NODE_START_COMMAND); if (startCommandNode != null) { startCommandInfo.command = XmlUtils.getAttribute(startCommandNode, NODE_ATTRIBUTE_COMMAND); startCommandInfo.stdoutSearchToken = XmlUtils.getAttribute(startCommandNode, NODE_ATTRIBUTE_STDOUT_SEARCH_TOKEN); } Element stopCommandNode = getNoMoreThanOneChild(applicationNode, NODE_STOP_COMMAND); if (stopCommandNode != null) { stopCommandInfo.command = XmlUtils.getAttribute(stopCommandNode, NODE_ATTRIBUTE_COMMAND); stopCommandInfo.stdoutSearchToken = XmlUtils.getAttribute(stopCommandNode, NODE_ATTRIBUTE_STDOUT_SEARCH_TOKEN); } }