Search in sources :

Example 1 with BasicJavacTask

use of com.sun.tools.javac.api.BasicJavacTask in project error-prone by google.

the class ErrorProneJavacPlugin method init.

@Override
public void init(JavacTask javacTask, String... args) {
    Context context = ((BasicJavacTask) javacTask).getContext();
    BaseErrorProneJavaCompiler.setupMessageBundle(context);
    javacTask.addTaskListener(ErrorProneAnalyzer.createByScanningForPlugins(BuiltInCheckerSuppliers.defaultChecks(), ErrorProneOptions.processArgs(args), context));
}
Also used : Context(com.sun.tools.javac.util.Context) BasicJavacTask(com.sun.tools.javac.api.BasicJavacTask)

Aggregations

BasicJavacTask (com.sun.tools.javac.api.BasicJavacTask)1 Context (com.sun.tools.javac.util.Context)1