Search in sources :

Example 1 with DeploymentProperties

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;
}
Also used : DeploymentProperties(org.glassfish.deployment.common.DeploymentProperties)

Example 2 with 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;
}
Also used : DeploymentProperties(org.glassfish.deployment.common.DeploymentProperties) Application(com.sun.enterprise.config.serverbeans.Application)

Aggregations

DeploymentProperties (org.glassfish.deployment.common.DeploymentProperties)2 Application (com.sun.enterprise.config.serverbeans.Application)1