private void doNormalCommandLineList(List<String> commandLineList,List<String> jointOptions,Path classpath){
  commandLineList.add("--classpath");
  commandLineList.add(classpath.toString());
  if (jointCompilation) {
    commandLineList.add("-j");
    commandLineList.addAll(jointOptions);
  }
  if (destDir != null) {
    commandLineList.add("-d");
    commandLineList.add(destDir.getPath());
  }
  if (encoding != null) {
    commandLineList.add("--encoding");
    commandLineList.add(encoding);
  }
  if (stacktrace) {
    commandLineList.add("-e");
  }
  if (parameters) {
    commandLineList.add("--parameters");
  }
  if (useIndy) {
    commandLineList.add("--indy");
  }
  if (scriptBaseClass != null) {
    commandLineList.add("-b");
    commandLineList.add(scriptBaseClass);
  }
  if (configscript != null) {
    commandLineList.add("--configscript");
    commandLineList.add(configscript);
  }
}

private void doNormalCommandLineList ( List < String > commandLineList , List < String > jointOptions , Path classpath ) { commandLineList . add ( "--classpath" ) ; commandLineList . add ( classpath . toString ( ) ) ; if ( jointCompilation ) { commandLineList . add ( "-j" ) ; commandLineList . addAll ( jointOptions ) ; } if ( destDir != null ) { commandLineList . add ( "-d" ) ; commandLineList . add ( destDir . getPath ( ) ) ; } if ( encoding != null ) { commandLineList . add ( "--encoding" ) ; commandLineList . add ( encoding ) ; } if ( stacktrace ) { commandLineList . add ( "-e" ) ; } if ( parameters ) { commandLineList . add ( "--parameters" ) ; } if ( useIndy ) { commandLineList . add ( "--indy" ) ; } if ( scriptBaseClass != null ) { commandLineList . add ( "-b" ) ; commandLineList . add ( scriptBaseClass ) ; } if ( configscript != null ) { commandLineList . add ( "--configscript" ) ; commandLineList . add ( configscript ) ; } }
add " groovyc " parameters to the commandlinelist , based on the ant configuration .
