|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.Deploy
public class Deploy
Some static routines to allow deployment of java applications from a jar file.
| Constructor Summary | |
|---|---|
Deploy()
|
|
| Method Summary | |
|---|---|
static void |
ask(Map<String,String> prop,
String key,
String query)
On first start, calling this method with an argument map and a string key, the user is asked to input the correct key setting on the command line. |
private static boolean |
canRead(File that)
Checks, if a file/directory exists and is readable. |
private static boolean |
canWrite(File that)
Checks, if a file/directory exists and is readable. |
static boolean |
checkReadConfig()
Checkis if the user home directory exists and can be writtn. |
static boolean |
checkReadHome()
Checkis if the user home directory exists and can be writtn. |
static File |
getConfig()
Returns the config directory as a file. |
static File |
getCurrent()
Returns the current directory as a file. |
static File |
getHome()
Returns the user's home directory as a file. |
static void |
jask(Map<String,String> prop,
String key,
String query)
Displays a dialog for input of string answers. |
static Map<String,String> |
loadNormalOrder(String res)
Tries to read properties from the default locations ion the following order: First config, then home, last current. |
static Map<String,String> |
propertiesFromConfig(String res)
Tries to read from home directory the stated property bearing definitions. |
static Map<String,String> |
propertiesFromCurrent(String res)
Tries to read from current directory the stated property bearing definitions. |
static Map<String,String> |
propertiesFromHome(String res)
Tries to read from home directory the stated property bearing definitions. |
static boolean |
saveNormalOrder(PropertyBearing prop,
String res,
String remark)
Save the properties in normal order: First config, then home, last current. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Deploy()
| Method Detail |
|---|
public static void ask(Map<String,String> prop,
String key,
String query)
public static void jask(Map<String,String> prop,
String key,
String query)
public static Map<String,String> loadNormalOrder(String res)
public static boolean saveNormalOrder(PropertyBearing prop,
String res,
String remark)
public static Map<String,String> propertiesFromConfig(String res)
public static Map<String,String> propertiesFromHome(String res)
public static Map<String,String> propertiesFromCurrent(String res)
public static boolean checkReadHome()
public static boolean checkReadConfig()
public static File getHome()
public static File getCurrent()
public static File getConfig()
private static boolean canRead(File that)
private static boolean canWrite(File that)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||