Package io.deephaven.configuration
Class ConfigDir
java.lang.Object
io.deephaven.configuration.ConfigDir
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Gets the configuration file, first by the system property "Configuration.rootFile" if set; otherwise the filename "deephaven.prop" inthe config directory
if the file exists; and otherwise returns "dh-defaults.prop".get()
Gets the config directory by the system property "deephaven.configDir" or environment variable "DEEPHAVEN_CONFIG_DIR" if present.static Path
Gets the config directory if the system property "deephaven.configDir" or environment variable "DEEPHAVEN_CONFIG_DIR" is present, otherwise sets the system property "deephaven.configDir" todefaultValue
and returnsdefaultValue
.
-
Field Details
-
PROPERTY
- See Also:
-
ENV_VAR
- See Also:
-
-
Constructor Details
-
ConfigDir
public ConfigDir()
-
-
Method Details
-
get
Gets the config directory by the system property "deephaven.configDir" or environment variable "DEEPHAVEN_CONFIG_DIR" if present.- Returns:
- the config directory
-
getOrSet
Gets the config directory if the system property "deephaven.configDir" or environment variable "DEEPHAVEN_CONFIG_DIR" is present, otherwise sets the system property "deephaven.configDir" todefaultValue
and returnsdefaultValue
.- Parameters:
defaultValue
- the value to set if none is present- Returns:
- the config directory
-
configurationFile
Gets the configuration file, first by the system property "Configuration.rootFile" if set; otherwise the filename "deephaven.prop" inthe config directory
if the file exists; and otherwise returns "dh-defaults.prop".- Returns:
- the configuration file
-