public void importDeploymentPackage(String dpURL, boolean autoCommit) throws Exception {
URL url = URI.create(dpURL).toURL();
InputStream is = null;
JarInputStream jis = null;
try {
is = url.openStream();
jis = new JarInputStream(is);
importDeploymentPackage(jis, autoCommit);
}
finally {
closeSilently(is);
closeSilently(jis);
}
}
|