use of com.intellij.openapi.compiler.CompileTask in project intellij-community by JetBrains.
the class GradleCompilingTestCase method setUpInWriteAction.
@Override
protected void setUpInWriteAction() throws Exception {
super.setUpInWriteAction();
final GradleResourceCompilerConfigurationGenerator buildConfigurationGenerator = new GradleResourceCompilerConfigurationGenerator(myProject);
CompilerManager.getInstance(myProject).addBeforeTask(new CompileTask() {
@Override
public boolean execute(CompileContext context) {
AccessToken token = ReadAction.start();
try {
buildConfigurationGenerator.generateBuildConfiguration(context);
} finally {
token.finish();
}
return true;
}
});
}
Aggregations