private void parseJvmOptionsAndSpringConfig(Iterable<String> args){
  for (  String arg : args) {
    if (arg.startsWith(JVM_OPTION_PREFIX)) {
      String jvmOpt=arg.substring(JVM_OPTION_PREFIX.length());
      if (!checkJVMOptionIsSupported(jvmOpt))       throw new RuntimeException(JVM_OPTION_PREFIX + " JVM parameters for Ignite batch scripts " + "with double quotes are not supported. "+ "Use JVM_OPTS environment variable to pass any custom JVM option.");
      jvmOptions=jvmOptions.isEmpty() ? jvmOpt : jvmOptions + " " + jvmOpt;
    }
 else {
      if (springCfgPath.isEmpty())       springCfgPath=arg;
 else       throw new RuntimeException("Unrecognised parameter has been found: " + arg);
    }
  }
}

private void parseJvmOptionsAndSpringConfig ( Iterable < String > args ) { for ( String arg : args ) { if ( arg . startsWith ( JVM_OPTION_PREFIX ) ) { String jvmOpt = arg . substring ( JVM_OPTION_PREFIX . length ( ) ) ; if ( ! checkJVMOptionIsSupported ( jvmOpt ) ) throw new RuntimeException ( JVM_OPTION_PREFIX + " JVM parameters for Ignite batch scripts " + "with double quotes are not supported. " + "Use JVM_OPTS environment variable to pass any custom JVM option." ) ; jvmOptions = jvmOptions . isEmpty ( ) ? jvmOpt : jvmOptions + " " + jvmOpt ; } else { if ( springCfgPath . isEmpty ( ) ) springCfgPath = arg ; else throw new RuntimeException ( "Unrecognised parameter has been found: " + arg ) ; } } }
manually parses non - trivial ( from jcommander point of view ) arguments .
