private void setAppRefAttributes(ApplicationRef appRef, DeployCommandParameters deployParams) throws PropertyVetoException { appRef.setRef(deployParams.name); if (deployParams.virtualservers != null) { appRef.setVirtualServers(deployParams.virtualservers); } else { // deploy to all virtual-servers, we need to get the list. appRef.setVirtualServers(DeploymentUtils.getVirtualServers(deployParams.target, env, domain)); } if(deployParams.lbenabled != null){ appRef.setLbEnabled(deployParams.lbenabled); } else { //check if system property exists and use that String lbEnabledDefault = System.getProperty(Server.lbEnabledSystemProperty); if (lbEnabledDefault != null) { appRef.setLbEnabled(lbEnabledDefault); } } appRef.setEnabled(deployParams.enabled.toString()); }
private void setAppRefAttributes(ApplicationRef appRef, DeployCommandParameters deployParams) throws PropertyVetoException { appRef.setRef(deployParams.name); if (deployParams.virtualservers != null) { appRef.setVirtualServers(deployParams.virtualservers); } else { // deploy to all virtual-servers, we need to get the list. appRef.setVirtualServers(DeploymentUtils.getVirtualServers(deployParams.target, env, domain)); } if(deployParams.lbenabled != null){ appRef.setLbEnabled(deployParams.lbenabled); } else { //check if system property exists and use that String lbEnabledDefault = System.getProperty(Server.lbEnabledSystemProperty); if (lbEnabledDefault != null) { appRef.setLbEnabled(lbEnabledDefault); } } appRef.setEnabled(deployParams.enabled.toString()); }
commandParams.virtualservers = DeploymentUtils.getVirtualServers( commandParams.target, env, domain);
commandParams.virtualservers = DeploymentUtils.getVirtualServers( commandParams.target, env, domain);