public void wipeBundle ( boolean deleteJar ) { // clear out our cache directory if ( _cache != null ) { FileUtil . recursiveClean ( _cache ) ; } // delete our unpack stamp file if ( _unpacked != null ) { _unpacked . delete ( ) ; } // clear out any .jarv file that Getdown might be maintaining so // that we ensure that it is revalidated File vfile = new File ( FileUtil . resuffix ( _source , ".jar" , ".jarv" ) ) ; if ( vfile . exists ( ) && ! vfile . delete ( ) ) { log . warning ( "Failed to delete vfile" , "file" , vfile ) ; } // close and delete our source jar file if ( deleteJar && _source != null ) { closeJar ( ) ; if ( ! _source . delete ( ) ) { log . warning ( "Failed to delete source" , "source" , _source , "exists" , _source . exists ( ) ) ; } } }
Clears out everything associated with this resource bundle in the hopes that we can download it afresh and everything will work the next time around .