ARTEMIS-2026 don't override 'java.io.tmpdir' if set

This commit is contained in:
Dirk Van Haerenborgh 2021-01-04 17:21:51 +01:00 committed by Justin Bertram
parent 46a592e887
commit 9c9d4de231
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ public class Artemis {
}
}
if (fileInstance != null) {
if (System.getProperty("java.io.tmpdir") == null && fileInstance != null) {
System.setProperty("java.io.tmpdir", new File(fileInstance, "tmp").getCanonicalPath());
}