play.templates.PrecompileTemplates Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of framework Show documentation
Show all versions of framework Show documentation
RePlay is a fork of the Play1 framework, created by Codeborne.
package play.templates;
import play.Play;
public class PrecompileTemplates {
public static void main(String[] args) {
System.setProperty("precompile", "true");
loadPrecompiledJavaClasses();
precompileTemplates();
}
private static void loadPrecompiledJavaClasses() {
System.setProperty("precompiled", "true");
Play play = new Play();
play.init("prod");
Play.usePrecompiled = false;
}
private static void precompileTemplates() {
TemplateLoader.getAllTemplate();
}
}