public class Preferences
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ENV_JAVA_HOME |
static java.lang.String |
JAVA_HOME |
static java.lang.String |
RUNDECK_DEFAULTS_PROPERTIES_NAME |
static java.lang.String |
SYSTEM_RDECK_BASE |
| Constructor and Description |
|---|
Preferences() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
backSlashPath(java.lang.String input) |
static java.lang.String |
forwardSlashPath(java.lang.String input) |
static void |
generate(java.lang.String[] args,
java.lang.String preferences,
java.util.Properties inputProps)
generate preferences file represented by preferences String
|
static void |
loadResourcesDefaults(java.util.Properties defaultProperties,
java.lang.String propertiesFileName) |
static void |
parseNonReqOptionsAsProperties(java.util.Properties defaultProperties,
java.lang.String[] args)
Parse arguments that match "--key=value" and populate the Properties with the values.
|
public static final java.lang.String JAVA_HOME
public static final java.lang.String ENV_JAVA_HOME
public static final java.lang.String SYSTEM_RDECK_BASE
public static final java.lang.String RUNDECK_DEFAULTS_PROPERTIES_NAME
public static void generate(java.lang.String[] args,
java.lang.String preferences,
java.util.Properties inputProps)
throws java.lang.Exception
args - arg stringspreferences - prefsinputProps - inputjava.lang.Exception - on errorpublic static void loadResourcesDefaults(java.util.Properties defaultProperties,
java.lang.String propertiesFileName)
throws java.io.IOException
java.io.IOExceptionpublic static void parseNonReqOptionsAsProperties(java.util.Properties defaultProperties,
java.lang.String[] args)
throws java.lang.Exception
defaultProperties - the propertiesargs - the argumentsjava.lang.Exception - if an error occurspublic static java.lang.String forwardSlashPath(java.lang.String input)
public static java.lang.String backSlashPath(java.lang.String input)