batch.add(new DefaultBatchedCommand(cmdContext, "add", addXADatasourceProperty(deploymentName, "connection-url", properties.getProperty("connection-url")), null)); } else { batch.add(new DefaultBatchedCommand(cmdContext, "add", addXADatasourceProperty(deploymentName, "DatabaseName", properties.getProperty("DatabaseName")), null)); if (properties.getProperty("PortNumber") != null) { batch.add(new DefaultBatchedCommand(cmdContext, "add", addXADatasourceProperty(deploymentName, "PortNumber", properties.getProperty("PortNumber")), null)); batch.add(new DefaultBatchedCommand(cmdContext, "add", addXADatasourceProperty(deploymentName, "ServerName", properties.getProperty("ServerName")), null)); String value = prop.substring(prop.indexOf('=')+1); batch.add(new DefaultBatchedCommand(cmdContext, "add", addXADatasourceProperty(deploymentName, key, value), null));
batch.add(new DefaultBatchedCommand(cmdContext, "add", addXADatasourceProperty(deploymentName, "connection-url", properties.getProperty("connection-url")), null)); } else { batch.add(new DefaultBatchedCommand(cmdContext, "add", addXADatasourceProperty(deploymentName, "DatabaseName", properties.getProperty("DatabaseName")), null)); if (properties.getProperty("PortNumber") != null) { batch.add(new DefaultBatchedCommand(cmdContext, "add", addXADatasourceProperty(deploymentName, "PortNumber", properties.getProperty("PortNumber")), null)); batch.add(new DefaultBatchedCommand(cmdContext, "add", addXADatasourceProperty(deploymentName, "ServerName", properties.getProperty("ServerName")), null)); String value = prop.substring(prop.indexOf('=')+1); batch.add(new DefaultBatchedCommand(cmdContext, "add", addXADatasourceProperty(deploymentName, key, value), null));