log.log( Level.INFO, "Executing script: " + request.getUrl() );
}
Binding binding = createScriptContext(request, response);
try {
GroovyShell shell = new GroovyShell( binding );
File groovyScript = Http.translatePath( groovyDir, request.getUrl() );
if( groovyScript.exists() ) {
shell.evaluate( groovyScript.getAbsolutePath() );
} else {
response.sendError( HttpURLConnection.HTTP_NOT_FOUND, request.getUrl() + " not found.");
}
} catch (ClassNotFoundException e) {
log.log( Level.SEVERE, e.getMessage(), e );