Class WebTmpCleaner


  • public class WebTmpCleaner
    extends java.lang.Object
    This class is used to remove the jar files in temp web dir on Windows platform where handles of the jar files are never released by URLClassLoader until the whole VM exits.
    • Constructor Summary

      Constructors 
      Constructor Description
      WebTmpCleaner()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Process cleanupTmpFiles​(java.io.File libFolder, java.util.List<java.io.File> temporaryFiles)  
      static java.lang.Process cleanupTmpFiles​(java.io.File libFolder, java.util.List<java.io.File> temporaryFiles, boolean invm)  
      static void deleteFolder​(java.io.File file)  
      static void main​(java.lang.String[] filesToClean)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebTmpCleaner

        public WebTmpCleaner()
    • Method Detail

      • main

        public static void main​(java.lang.String[] filesToClean)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • cleanupTmpFiles

        public static java.lang.Process cleanupTmpFiles​(java.io.File libFolder,
                                                        java.util.List<java.io.File> temporaryFiles)
                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • cleanupTmpFiles

        public static java.lang.Process cleanupTmpFiles​(java.io.File libFolder,
                                                        java.util.List<java.io.File> temporaryFiles,
                                                        boolean invm)
                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • deleteFolder

        public static final void deleteFolder​(java.io.File file)