File configurationDir = null;
try {
configurationDir = configStore.createNewConfigurationDir();
// build the deployer-system configuration into the configurationDir
ConfigurationData configurationData = builder.buildConfiguration(deployerSystemConfig, null, configurationDir);
ExecutableConfigurationUtil.createExecutableConfiguration(configurationData, manifest, configurationDir, new File(deployerJar));
// install the configuration
configStore.install(configurationData, configurationDir);
} catch (Throwable e) {
DeploymentUtil.recursiveDelete(configurationDir);
if (e instanceof Error) {
throw (Error) e;
} else if (e instanceof Exception) {
throw (Exception) e;
}
throw new Error(e);
}
//get the domain and server from the parent xml config
String domain = deployerSystemConfig.getDomain();
String server = deployerSystemConfig.getServer();
// build and install the j2ee-deployer configuration
try {
configurationDir = configStore.createNewConfigurationDir();
// build the j2ee-deployer configuration into the configurationDir
ConfigurationData configurationData = builder.buildConfiguration(j2eeDeployerConfig, domain, server, configurationDir);
// install the configuration
configStore.install(configurationData, configurationDir);
} catch (Throwable e) {
DeploymentUtil.recursiveDelete(configurationDir);