in src/main/java/org/apache/sling/scripting/sightly/repl/impl/REPLJavaSourceCodeServlet.java [91:108]
private String getClassSourceCode() {
if (classesFolder != null && classesFolder.isDirectory()) {
File classFile = new File(
classesFolder,
"org/apache/sling/scripting/sightly/apps/repl/components/repl/template__002e__html.java");
if (classFile.isFile()) {
try {
return IOUtils.toString(new FileInputStream(classFile), "UTF-8");
} catch (IOException e) {
LOGGER.error("Unable to read file " + classFile.getAbsolutePath(), e);
}
}
LOGGER.warn("Source code for " + (classesFolder.isDirectory() ? classesFolder.getAbsolutePath() : "")
+ "/org/apache/sling/scripting/sightly/apps/repl/components/repl/template_html.java was not found. Maybe you need to "
+ "configure the HTL Scripting Engine to keep the generated source files?");
}
return "";
}