use of org.gradle.plugins.javascript.coffeescript.compile.internal.rhino.RhinoCoffeeScriptCompiler in project gradle by gradle.
the class CoffeeScriptCompile method doCompile.
@TaskAction
public void doCompile() {
RhinoWorkerHandleFactory handleFactory = new DefaultRhinoWorkerHandleFactory(getWorkerProcessBuilderFactory());
CoffeeScriptCompileSpec spec = new DefaultCoffeeScriptCompileSpec();
spec.setCoffeeScriptJs(getCoffeeScriptJs().getSingleFile());
spec.setDestinationDir(getDestinationDir());
spec.setSource(getSource());
spec.setOptions(getOptions());
LogLevel logLevel = getProject().getGradle().getStartParameter().getLogLevel();
CoffeeScriptCompiler compiler = new RhinoCoffeeScriptCompiler(handleFactory, getRhinoClasspath(), logLevel, getProject().getProjectDir());
setDidWork(compiler.compile(spec).getDidWork());
}
Aggregations