{
// Delete any expanded war
VirtualFile warFile = unit.getAttachment("org.jboss.web.expandedWarFile", VirtualFile.class);
if (warFile != null)
{
warFile.cleanup(); // it's temp, it will be deleted as well
}
}
catch (Exception e)
{
log.debug("Failed to remove expanded war", e);