Search in sources :

Example 1 with DeploymentPlanArchive

use of com.sun.enterprise.deployment.deploy.shared.DeploymentPlanArchive in project Payara by payara.

the class DolProvider method handleDeploymentPlan.

protected void handleDeploymentPlan(File deploymentPlan, Archivist archivist, ReadableArchive sourceArchive, ApplicationHolder holder) throws IOException {
    // file does not overwrite the one in the original archive
    if (deploymentPlan != null) {
        DeploymentPlanArchive dpa = new DeploymentPlanArchive();
        dpa.setParentArchive(sourceArchive);
        dpa.open(deploymentPlan.toURI());
        // need to revisit for ear case
        WritableArchive targetArchive = archiveFactory.createArchive(sourceArchive.getURI());
        if (archivist instanceof ApplicationArchivist) {
            ((ApplicationArchivist) archivist).copyInto(holder.app, dpa, targetArchive, false);
        } else {
            archivist.copyInto(dpa, targetArchive, false);
        }
    }
}
Also used : DeploymentPlanArchive(com.sun.enterprise.deployment.deploy.shared.DeploymentPlanArchive) WritableArchive(org.glassfish.api.deployment.archive.WritableArchive)

Aggregations

DeploymentPlanArchive (com.sun.enterprise.deployment.deploy.shared.DeploymentPlanArchive)1 WritableArchive (org.glassfish.api.deployment.archive.WritableArchive)1