Collection<String> (final ModuleBuildTarget target, final String compilerPath, final String classpath, final RmicCompilerOptions config, final Collection<ClassItem> items) { final List<String> commandLine = new ArrayList<>(); commandLine.add(compilerPath); if (config.DEBUGGING_INFO) { commandLine.add("-g"); } if(config.GENERATE_IIOP_STUBS) { commandLine.add("-iiop"); } final StringTokenizer tokenizer = new StringTokenizer(config.ADDITIONAL_OPTIONS_STRING, " \t\r\n"); while(tokenizer.hasMoreTokens()) { final String token = tokenizer.nextToken(); commandLine.add(token); } commandLine.add("-classpath"); commandLine.add(classpath); commandLine.add("-d"); final File outputDir = target.getOutputDir(); assert outputDir != null; commandLine.add(outputDir.getPath()); for (ClassItem item : items) { commandLine.add(item.compiledClass.getClassName()); } return commandLine; }