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);
}
}
}
Aggregations