public static void parseArgs(String[] args, AbstractPlatformConfiguration config) { for(int i=0; args!=null && i<args.length; i+=2) { parseArg(args[i], args[i+1], config); } }
public void parseArg(String key, String val) { parseArg(key, val, this); }
/** * Create a platform configuration. * @param args The command line arguments. * @return StarterConfiguration * @deprecated since 3.0.7. Use other processArgs methods instead. */ @Deprecated public static PlatformConfiguration processArgs(Map<String, String> args) { PlatformConfiguration config = new PlatformConfiguration(); // ?! hmm needs to be passed as parameter also? if(args!=null) { for(Map.Entry<String, String> arg: args.entrySet()) { parseArg(arg.getKey(), arg.getValue(), config); } } return config; }
/** * Create a platform configuration. * @param args The command line arguments. * @return StarterConfiguration */ public static PlatformConfiguration processArgs(String[] args) { PlatformConfiguration config = new PlatformConfiguration(args); if(args!=null) { for(int i=0; args!=null && i<args.length; i+=2) { parseArg(args[i], args[i+1], config); } } config.getRootConfig().setProgramArguments(args); return config; }