public class LauncherUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
getLaunchProperties(String[] args)
Return the launch arguments of a main static method into a Map of <key,value>.
|
static File |
getUserDir(Class clazz)
Return the parent directory of the code which contains a class.
|
public static Map<String,String> getLaunchProperties(String[] args)
key1 prop1 key2 prop2 ...or
key1=prop1 key2=prop2 ...it is even possible to mix the two patterns such as:
key1 prop1 key2=prop2 ...if the value for the key is not set, then a (key, value) will be added with an empty String as value
key2= -key3 -key4=value4
args
- the launch argumentspublic static File getUserDir(Class clazz)
System.getProperty("user.dir")
pathclazz
- the class