use of org.glassfish.deployment.common.DeploymentProperties in project Payara by payara.
the class AutoDeploymentOperation method getDeployActionProperties.
private static Properties getDeployActionProperties(File deployablefile, boolean enabled, String virtualServer, boolean forceDeploy, boolean verify, boolean jspPreCompilation, String target, String contextRoot) {
DeploymentProperties deploymentProperties = new DeploymentProperties();
deploymentProperties.setPath(deployablefile.getAbsolutePath());
deploymentProperties.setVirtualServers(virtualServer);
deploymentProperties.setTarget(target);
deploymentProperties.setContextRoot(contextRoot);
deploymentProperties.setEnabled(enabled);
deploymentProperties.setForce(forceDeploy);
deploymentProperties.setVerify(verify);
deploymentProperties.setPrecompileJSP(jspPreCompilation);
deploymentProperties.setProperty(LOG_REPORTED_ERRORS, "false");
return deploymentProperties;
}
use of org.glassfish.deployment.common.DeploymentProperties in project Payara by payara.
the class AutoUndeploymentOperation method prepareUndeployActionProperties.
private Properties prepareUndeployActionProperties(String archiveName, String target) {
DeploymentProperties deploymentProperties = new DeploymentProperties();
// We need to find the application registration name
// which is not always the same as archive name
String applicationName = archiveName;
for (Application application : apps.getApplications()) {
String defaultAppName = application.getDeployProperties().getProperty(DEFAULT_APP_NAME);
if (defaultAppName != null && defaultAppName.equals(archiveName)) {
applicationName = application.getName();
}
}
deploymentProperties.setName(applicationName);
deploymentProperties.setTarget(target);
return deploymentProperties;
}
Aggregations