String scriptPackagePath = this.getPackage().getPath(); if (scriptIds != null)
String scriptPackagePath = this.getPackage().getPath(); if (scriptIds != null)
String scriptPackagePath = this.getPackage().getPath(); if (scriptIds != null)
/** * Find a package specific status template * * @param scriptPath Path * @param statusCode int * @param format String * @return status template (or null, if not found) */ private StatusTemplate getPackageStatusTemplate(Path scriptPath, int statusCode, String format) { while(scriptPath != null) { String path = PathImpl.concatPath(scriptPath.getPath(), format + "." + statusCode + ".ftl"); String validTemplatePath = container.getTemplateProcessorRegistry().findValidTemplatePath(path); if (validTemplatePath != null) { return new StatusTemplate(path, format); } path = PathImpl.concatPath(scriptPath.getPath(), format + ".status.ftl"); validTemplatePath = container.getTemplateProcessorRegistry().findValidTemplatePath(path); if (validTemplatePath != null) { return new StatusTemplate(path, format); } scriptPath = scriptPath.getParent(); } return null; }
/** * Find a package specific status template * * @param scriptPath Path * @param statusCode int * @param format String * @return status template (or null, if not found) */ private StatusTemplate getPackageStatusTemplate(Path scriptPath, int statusCode, String format) { while(scriptPath != null) { String path = PathImpl.concatPath(scriptPath.getPath(), format + "." + statusCode + ".ftl"); String validTemplatePath = container.getTemplateProcessorRegistry().findValidTemplatePath(path); if (validTemplatePath != null) { return new StatusTemplate(path, format); } path = PathImpl.concatPath(scriptPath.getPath(), format + ".status.ftl"); validTemplatePath = container.getTemplateProcessorRegistry().findValidTemplatePath(path); if (validTemplatePath != null) { return new StatusTemplate(path, format); } scriptPath = scriptPath.getParent(); } return null; }
/** * Find a package specific status template * * @param scriptPath * @param statusCode * @param format * @return status template (or null, if not found) */ private StatusTemplate getPackageStatusTemplate(Path scriptPath, int statusCode, String format) { while(scriptPath != null) { String path = PathImpl.concatPath(scriptPath.getPath(), format + "." + statusCode + ".ftl"); String validTemplatePath = container.getTemplateProcessorRegistry().findValidTemplatePath(path); if (validTemplatePath != null) { return new StatusTemplate(path, format); } path = PathImpl.concatPath(scriptPath.getPath(), format + ".status.ftl"); validTemplatePath = container.getTemplateProcessorRegistry().findValidTemplatePath(path); if (validTemplatePath != null) { return new StatusTemplate(path, format); } scriptPath = scriptPath.getParent(); } return null; }
PathImpl filteredPath = filteredParent == null ? new PathImpl(path.getPath()) : filteredParent.createChildPath(path.getName());