private static boolean addConstantsToGenerator(StringArgument constants,EntryGenerator generator,final ConsoleApplication app){
  for (  final String constant : constants.getValues()) {
    final String[] chunks=constant.split("=");
    if (chunks.length != 2) {
      app.errPrintln(ERR_CONSTANT_ARG_CANNOT_DECODE.get(constant));
      return false;
    }
    generator.setConstant(chunks[0],chunks[1]);
  }
  return true;
}

private static boolean addConstantsToGenerator ( StringArgument constants , EntryGenerator generator , final ConsoleApplication app ) { for ( final String constant : constants . getValues ( ) ) { final String [ ] chunks = constant . split ( "=" ) ; if ( chunks . length != 2 ) { app . errPrintln ( ERR_CONSTANT_ARG_CANNOT_DECODE . get ( constant ) ) ; return false ; } generator . setConstant ( chunks [ 0 ] , chunks [ 1 ] ) ; } return true ; }
returns true if all constants are added to generator , false otherwise .
