lib 1400533 // ECJ sS invokeEcj_direct(File optionsFile) ctex { new StringWriter writer; PrintWriter printWriter = new(writer); S[] args = { "@" + optionsFile.getPath() }; org.eclipse.jdt.internal.compiler.batch.Main ecj = new org.eclipse.jdt.internal.compiler.batch.Main (printWriter, printWriter, false); ecj.compile(args); int errors = ecj.globalErrorsCount; S output = str(writer); if (errors != 0) { print(output); throw new JavaCompileException("ECJ returned errors. " + output + "\nOptions: " + loadTextFile(optionsFile)); } ret output; }