From 9c9d4de2311a145405da755d7ab27cc33dedf64f Mon Sep 17 00:00:00 2001 From: Dirk Van Haerenborgh Date: Mon, 4 Jan 2021 17:21:51 +0100 Subject: [PATCH] ARTEMIS-2026 don't override 'java.io.tmpdir' if set --- .../src/main/java/org/apache/activemq/artemis/boot/Artemis.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artemis-boot/src/main/java/org/apache/activemq/artemis/boot/Artemis.java b/artemis-boot/src/main/java/org/apache/activemq/artemis/boot/Artemis.java index 880a05b71a..db1b40dd00 100644 --- a/artemis-boot/src/main/java/org/apache/activemq/artemis/boot/Artemis.java +++ b/artemis-boot/src/main/java/org/apache/activemq/artemis/boot/Artemis.java @@ -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()); }