rss.jsp revision 59b6a8c0cc6ef741a7180504b3c371e67c2aa338
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric LuceCDDL HEADER START
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric LuceThe contents of this file are subject to the terms of the
fcc9f7f86c2fa2ceb8a5c16dc934fea7fa6887f2Andreas GustafssonCommon Development and Distribution License (the "License").
fcc9f7f86c2fa2ceb8a5c16dc934fea7fa6887f2Andreas GustafssonYou may not use this file except in compliance with the License.
fcc9f7f86c2fa2ceb8a5c16dc934fea7fa6887f2Andreas GustafssonSee LICENSE.txt included in this distribution for the specific
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Lucelanguage governing permissions and limitations under the License.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric LuceWhen distributing Covered Code, include this CDDL HEADER in each
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Lucefile and include the License file at LICENSE.txt.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric LuceIf applicable, add the following below this CDDL HEADER, with the
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Lucefields enclosed by brackets "[]" replaced with your own identifying
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luceinformation: Portions Copyright [yyyy] [name of copyright owner]
fcc9f7f86c2fa2ceb8a5c16dc934fea7fa6887f2Andreas GustafssonCDDL HEADER END
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric LuceCopyright 2005 Sun Microsystems, Inc. All rights reserved.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric LuceUse is subject to license terms.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric LucePortions Copyright 2011 Jens Elkner.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce--%><%@page import="
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luceorg.opensolaris.opengrok.history.DirectoryHistoryReader,
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce%><%@ page session="false" errorPage="error.jsp"%><%@
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce/* ---------------------- rss.jsp start --------------------- */
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce cfg = PageConfig.get(request);
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce String redir = cfg.canProcess();
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce if (redir == null || redir.length() > 0) {
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce if (redir != null) {
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce response.sendError(HttpServletResponse.SC_NOT_FOUND);
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce cfg.getEnv().setUrlPrefix(request.getContextPath() + Prefix.SEARCH_R + '?');
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce String path = cfg.getPath();
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce String dtag = cfg.getDefineTagsIndex();
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce%><?xml version="1.0"?>
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce<?xml-stylesheet type="text/xsl" href="<%= request.getContextPath()
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce <title>Changes in <%= path.length() == 0
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce ? "Cross Reference"
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce : Util.htmlize(cfg.getResourceFile().getName()) %></title>
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce <link><%= Util.htmlize(request.getRequestURL()) %></link>
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce <description><%= Util.htmlize(dtag) %></description>
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce <language>en</language>
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce <copyright>Copyright 2005</copyright>
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce <generator>Java</generator><%
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce History hist = null;
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce hist = new DirectoryHistoryReader(cfg.getHistoryDirs()).getHistory();
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce hist = HistoryGuru.getInstance().getHistory(cfg.getResourceFile());
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce if (hist != null) {
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce for (HistoryEntry entry : hist.getHistoryEntries()) {
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce if (i-- <= 0) {
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce <title><%= Util.htmlize(entry.getMessage()) %></title>
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce <description><%
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce Set<String> files = entry.getFiles();
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce if (files != null) {
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce for (String ifile : files) {
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce %><%= Util.htmlize(ifile) %><%
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce %><%= Util.htmlize(path) %> - <%=
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce %></description>
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce SimpleDateFormat df =
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss Z");
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce %></pubDate>
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce <dc:creator><%= Util.htmlize(entry.getAuthor()) %></dc:creator>
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce/* ---------------------- rss.jsp end --------------------- */