Package org.infinispan.cli.util
Class SystemUtils
java.lang.Object
org.infinispan.cli.util.SystemUtils
SystemUtils.
- Since:
- 5.2
- Author:
- Tristan Tarrant
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAppConfigFolder(String appName) Returns an appropriate system-dependent folder for storing application-specific data.
-
Constructor Details
-
SystemUtils
public SystemUtils()
-
-
Method Details
-
getAppConfigFolder
Returns an appropriate system-dependent folder for storing application-specific data. The logic in this method uses the os.name to decide which is best. Currently it uses: ~/.config/${appName} on Unix/Linux (as per Freedesktop.org) %APPDATA%/Sun/Java/${appName} on Windows ~/Library/Java/${appName} on Mac OS X- Parameters:
appName-- Returns:
-