128129130131132133134135
@TaskAction void compile() { if(compiler==null){ compiler = new CleaningPlayToolCompiler<RoutesCompileSpec>(getCompiler(), getOutputs()); } RoutesCompileSpec spec = generateSpec(getSource().getFiles()); compiler.execute(spec); }
150151152153154155156
} return compiler; } private RoutesCompileSpec generateSpec(Set<File> files) { return new RoutesCompileSpec(files, getOutputDirectory(), getAdditionalImports()); }