use of org.jboss.testharness.api.DeploymentException in project tomee by apache.
the class ContainersImplTomEE method undeploy.
@Override
public void undeploy(final String name) throws IOException {
if (appInfo == null) {
if (!(exception instanceof DeploymentException)) {
System.out.println("Nothing to undeploy" + name);
}
return;
}
System.out.println("Undeploying " + name);
try {
deployer.undeploy(appInfo.path);
} catch (final Exception e) {
e.printStackTrace();
throw new OpenEJBTCKRuntimeException(e);
}
final File toDelete;
if (currentFile != null && (toDelete = currentFile.getParentFile()).exists()) {
System.out.println("deleting " + toDelete.getAbsolutePath());
delete(toDelete);
}
}
Aggregations