aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-12-21 10:16:26 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-12-21 10:16:26 +0000
commite889d53b6d65b83b3c18386d0c8f5d92b9b3ce48 (patch)
treee3d49f6217fd5d8509a6c7bd7c8ca62dc16ee4ed
parenteb9c165c95820c8cef0d0952f20f5b5ecd952b52 (diff)
downloadsonarqube-e889d53b6d65b83b3c18386d0c8f5d92b9b3ce48.tar.gz
sonarqube-e889d53b6d65b83b3c18386d0c8f5d92b9b3ce48.zip
add a comment
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/bootstrap/TempDirectories.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/TempDirectories.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/TempDirectories.java
index 25b33c14a45..9e820ed40b2 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/TempDirectories.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/TempDirectories.java
@@ -77,6 +77,8 @@ public final class TempDirectories {
public void stop() {
directoriesByKey.clear();
LoggerFactory.getLogger(getClass()).debug("Delete temporary directory: " + rootDir.getAbsolutePath());
+
+ // it probably does not work on MS Windows and Sun JVM. URLClassLoader locks JARs and resources.
FileUtils.deleteQuietly(rootDir);
}
}