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()); }