depContext.setModulePropsMap(app.getModulePropertiesMap());
deploymentContext.setModulePropsMap(modulePropsMap);
deploymentContext.setModulePropsMap(modulePropsMap);
public ExtendedDeploymentContext disable(UndeployCommandParameters commandParams, Application app, ApplicationInfo appInfo, ActionReport report, Logger logger) throws Exception { if (appInfo == null) { return null; } // if it's not on DAS and the application is not loaded, do not unload // when it's on DAS, there is some necessary clean up we need to do if (!env.isDas() && !appInfo.isLoaded()) { return null; } if (app != null) { commandParams._type = app.archiveType(); } final ExtendedDeploymentContext deploymentContext = getBuilder(logger, commandParams, report).source(appInfo.getSource()).build(); if (app != null) { deploymentContext.getAppProps().putAll( app.getDeployProperties()); deploymentContext.setModulePropsMap( app.getModulePropertiesMap()); } if (commandParams.properties != null) { deploymentContext.getAppProps().putAll(commandParams.properties); } unload(appInfo, deploymentContext); return deploymentContext; }
public ExtendedDeploymentContext disable(UndeployCommandParameters commandParams, Application app, ApplicationInfo appInfo, ActionReport report, Logger logger) throws Exception { if (appInfo == null) { report.failure(logger, "Application not registered", null); return null; } // if it's not on DAS and the application is not loaded, do not unload // when it's on DAS, there is some necessary clean up we need to do if (!env.isDas() && !appInfo.isLoaded()) { return null; } if (app != null) { commandParams._type = app.archiveType(); } final ExtendedDeploymentContext deploymentContext = getBuilder(logger, commandParams, report).source(appInfo.getSource()).build(); if (app != null) { deploymentContext.getAppProps().putAll( app.getDeployProperties()); deploymentContext.setModulePropsMap( app.getModulePropertiesMap()); } if (commandParams.properties != null) { deploymentContext.getAppProps().putAll(commandParams.properties); } unload(appInfo, deploymentContext); return deploymentContext; }
deploymentContext.setModulePropsMap(app.getModulePropertiesMap()); deploymentContext.setTenant(tenant.getTenant(), app.getName()); deployment.deploy(deployment.getSniffersFromApp(app), deploymentContext);
deploymentContext.getModuleProps().putAll(module.getModuleProps()); deploymentContext.setModulePropsMap(info.map); deploymentContext.getAppProps().putAll(info.appProps);
deploymentContext.setModulePropsMap( application.getModulePropertiesMap());
deploymentContext.setModulePropsMap(modulePropsMap);
deploymentContext.getAppProps().putAll( application.getDeployProperties()); deploymentContext.setModulePropsMap( application.getModulePropertiesMap());
deploymentContext.getAppProps().putAll( tenant.getDeployProperties()); deploymentContext.setModulePropsMap( app.getModulePropertiesMap());