false
for the second boolean argument
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
For example, if we have:
key1 value1 -key2=value2 -key3 key4=23
Then the method will return the following map:true
for the second boolean argument
-key1 -key2=value2 -key3 key4=23
Then the method will return:public class MyApp { public static void main(String[] args) { Map<String, String> theArgs = LauncherConf.getLaunchProperties(args); } }For the launch arguments:
java myApp -key1=1 key2=true
Then the theArgs
map will contain the following elements: {"key1" => "1", "key2" => "true"}
java myApp -key1 key2=true
Then the theArgs
map will contain the following elements: {"key1" => "", "key2" => "true"}
Copyright 2006-2023 Herve Girod. All Rights Reserved. Documentation and source under the LGPL v2 and Apache 2.0 licences