Class WebTmpCleaner
- java.lang.Object
-
- org.apache.activemq.artemis.component.WebTmpCleaner
-
public class WebTmpCleaner extends java.lang.ObjectThis 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.ProcesscleanupTmpFiles(java.io.File libFolder, java.util.List<java.io.File> temporaryFiles)static java.lang.ProcesscleanupTmpFiles(java.io.File libFolder, java.util.List<java.io.File> temporaryFiles, boolean invm)static voiddeleteFolder(java.io.File file)static voidmain(java.lang.String[] filesToClean)
-
-
-
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)
-
-