use of org.kie.workbench.common.services.backend.compiler.nio.decorators.OutputLogAfterDecorator in project kie-wb-common by kiegroup.
the class KieMavenCompilerFactory method createAndAddNewCompiler.
private static AFCompiler createAndAddNewCompiler(KieDecorator decorator) {
AFCompiler compiler;
switch(decorator) {
case NONE:
compiler = new KieDefaultMavenCompiler();
break;
case KIE_AFTER:
compiler = new KieAfterDecorator(new KieDefaultMavenCompiler());
break;
case KIE_AND_LOG_AFTER:
compiler = new KieAfterDecorator(new OutputLogAfterDecorator(new KieDefaultMavenCompiler()));
break;
case JGIT_BEFORE:
compiler = new JGITCompilerBeforeDecorator(new KieDefaultMavenCompiler());
break;
case JGIT_BEFORE_AND_LOG_AFTER:
compiler = new JGITCompilerBeforeDecorator(new OutputLogAfterDecorator(new KieDefaultMavenCompiler()));
break;
case JGIT_BEFORE_AND_KIE_AFTER:
compiler = new JGITCompilerBeforeDecorator(new KieAfterDecorator(new KieDefaultMavenCompiler()));
break;
case LOG_OUTPUT_AFTER:
compiler = new OutputLogAfterDecorator(new KieDefaultMavenCompiler());
break;
case JGIT_BEFORE_AND_KIE_AND_LOG_AFTER:
compiler = new JGITCompilerBeforeDecorator(new KieAfterDecorator(new OutputLogAfterDecorator(new KieDefaultMavenCompiler())));
break;
default:
compiler = new KieDefaultMavenCompiler();
}
compilers.put(Decorator.NONE.name(), compiler);
return compiler;
}
use of org.kie.workbench.common.services.backend.compiler.nio.decorators.OutputLogAfterDecorator in project kie-wb-common by kiegroup.
the class MavenCompilerFactory method createAndAddNewCompiler.
private static AFCompiler createAndAddNewCompiler(Decorator decorator) {
AFCompiler<?> compiler;
switch(decorator) {
case NONE:
compiler = new DefaultMavenCompiler();
break;
case JGIT_BEFORE:
compiler = new JGITCompilerBeforeDecorator(new DefaultMavenCompiler());
break;
case LOG_OUTPUT_AFTER:
compiler = new OutputLogAfterDecorator(new DefaultMavenCompiler());
break;
case JGIT_BEFORE_AND_LOG_AFTER:
compiler = new JGITCompilerBeforeDecorator(new OutputLogAfterDecorator(new DefaultMavenCompiler()));
break;
default:
compiler = new DefaultMavenCompiler();
}
compilers.put(Decorator.NONE.name(), compiler);
return compiler;
}
Aggregations