1 18 package org.apache.activemq.util; 19 20 23 public class IOHelper { 24 25 public static String getDefaultDataDirectory() { 26 return getDefaultDirectoryPrefix() + "activemq-data"; 27 } 28 29 public static String getDefaultStoreDirectory() { 30 return getDefaultDirectoryPrefix() + "amqstore"; 31 } 32 33 37 public static String getDefaultDirectoryPrefix() { 38 try { 39 return System.getProperty("org.apache.activemq.default.directory.prefix", ""); 40 } 41 catch (Exception e) { 42 return ""; 43 } 44 } 45 } 46 | Popular Tags |