Search in sources :

Example 1 with ExecutionPlanDependenciesFilter

use of org.finos.legend.engine.plan.compilation.ExecutionPlanDependenciesFilter in project legend-engine by finos.

the class JavaHelper method createNewJavaCompiler.

private static EngineJavaCompiler createNewJavaCompiler() {
    List<ClassPathFilter> filters = Lists.mutable.of(new ExecutionPlanDependenciesFilter());
    ExecutionPlanJavaCompilerExtensionLoader.extensions().forEach(ext -> filters.add(ext.getExtraClassPathFilter()));
    return new EngineJavaCompiler(JavaVersion.JAVA_8, new CompositeClassPathFilter(filters));
}
Also used : EngineJavaCompiler(org.finos.legend.engine.shared.javaCompiler.EngineJavaCompiler) ClassPathFilter(org.finos.legend.engine.shared.javaCompiler.ClassPathFilter) CompositeClassPathFilter(org.finos.legend.engine.shared.javaCompiler.CompositeClassPathFilter) CompositeClassPathFilter(org.finos.legend.engine.shared.javaCompiler.CompositeClassPathFilter) ExecutionPlanDependenciesFilter(org.finos.legend.engine.plan.compilation.ExecutionPlanDependenciesFilter)

Aggregations

ExecutionPlanDependenciesFilter (org.finos.legend.engine.plan.compilation.ExecutionPlanDependenciesFilter)1 ClassPathFilter (org.finos.legend.engine.shared.javaCompiler.ClassPathFilter)1 CompositeClassPathFilter (org.finos.legend.engine.shared.javaCompiler.CompositeClassPathFilter)1 EngineJavaCompiler (org.finos.legend.engine.shared.javaCompiler.EngineJavaCompiler)1