in src/main/java/org/apache/sling/scripting/sightly/repl/impl/REPLJavaSourceCodeServlet.java [69:89]
protected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/plain");
String sourceCode = getClassSourceCode();
if (sourceCode.length() == 0) {
StringBuilder configurationLink = new StringBuilder();
configurationLink.append(request.getScheme()).append("://").append(request.getServerName());
if (request.getServerPort() != 80) {
configurationLink.append(":").append(request.getServerPort());
}
configurationLink
.append(request.getContextPath())
.append(
"/system/console/configMgr/org.apache.sling.scripting.sightly.impl.engine.SightlyEngineConfiguration");
response.getWriter()
.write("/**\n * Please enable the \"Keep Generated Java Source Code\" option at\n * "
+ configurationLink.toString() + "\n */");
} else {
response.getWriter().write(getClassSourceCode());
}
}