Search in sources :

Example 1 with RoutesCompileSpec

use of org.gradle.play.internal.routes.RoutesCompileSpec in project gradle by gradle.

the class RoutesCompile method compile.

@TaskAction
void compile() {
    RoutesCompileSpec spec = new DefaultRoutesCompileSpec(getSource().getFiles(), getOutputDirectory(), getForkOptions(), isJavaProject(), isNamespaceReverseRouter(), isGenerateReverseRoutes(), getInjectedRoutesGenerator(), getAdditionalImports());
    new CleaningPlayToolCompiler<RoutesCompileSpec>(getCompiler(), getOutputs()).execute(spec);
}
Also used : DefaultRoutesCompileSpec(org.gradle.play.internal.routes.DefaultRoutesCompileSpec) DefaultRoutesCompileSpec(org.gradle.play.internal.routes.DefaultRoutesCompileSpec) RoutesCompileSpec(org.gradle.play.internal.routes.RoutesCompileSpec) TaskAction(org.gradle.api.tasks.TaskAction)

Aggregations

TaskAction (org.gradle.api.tasks.TaskAction)1 DefaultRoutesCompileSpec (org.gradle.play.internal.routes.DefaultRoutesCompileSpec)1 RoutesCompileSpec (org.gradle.play.internal.routes.RoutesCompileSpec)1