@ Override public void deleteUnpackedWAR ( StandardContext standardContext ) { File unpackDir = new File ( standardHost . getAppBase ( ) , standardContext . getPath ( ) . substring ( 1 ) ) ; if ( unpackDir . exists ( ) ) { ExpandWar . deleteDir ( unpackDir ) ; } }
Make sure an the unpacked WAR is not left behind you would think Tomcat would cleanup an unpacked WAR but it doesn t