history.jsp revision d20e59fef550af8fa03d564ef74e864107895848
1cf118a656f5fd210787908b845362077fc507f8Evan HuntCDDL HEADER START
1cf118a656f5fd210787908b845362077fc507f8Evan HuntThe contents of this file are subject to the terms of the
See LICENSE.txt included in this distribution for the specific
file and include the License file at LICENSE.txt.
Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
include file="mast.jsp"
%><%/* ---------------------- history.jsp start --------------------- */
PageConfig cfg = PageConfig.get(request);
String path = cfg.getPath();
if (path.length() > 0) {
String context = request.getContextPath();
RuntimeEnvironment env = cfg.getEnv();
String uriEncodedName = cfg.getUriEncodedPath();
String userPage = env.getUserPage();
String userPageSuffix = env.getUserPageSuffix();
String bugPage = env.getBugPage();
String bugRegex = env.getBugPattern();
if (bugRegex == null || bugRegex.equals("")) {
Pattern bugPattern = Pattern.compile(bugRegex);
String reviewPage = env.getReviewPage();
String reviewRegex = env.getReviewPattern();
if(reviewRegex == null || reviewRegex.equals("")) {
Pattern reviewPattern = Pattern.compile(reviewRegex);
File f = cfg.getResourceFile();
hist = HistoryGuru.getInstance().getHistoryUI(f);
%><h3>Problem</h3><p class="error"><%= e.getMessage() %></p><%
%><script type="text/javascript">/* <![CDATA[ */
document.domReady.push(function() {domReadyHistory();});
<style type="text/css">
<form action="<%= context + Prefix.DIFF_P + uriEncodedName %>">
<caption>History log of <a href="<%= context + Prefix.XREF_P
if (hist.hasTags()) {
if (!cfg.isDir()) {
if (hist.hasFileList()) {
for (HistoryEntry entry : hist.getHistoryEntries()) {
String rev = entry.getRevision();
if (rev == null || rev.length() == 0) {
String tags = entry.getTags();
if (cfg.isDir())
if (cfg.isDir()) {
if (entry.isActive()) {
<td><a href="<%= context + Prefix.HIST_L + rp %>#<%= rev %>"
Date date = entry.getDate();
%><%= df.format(date) %><%
String author = entry.getAuthor();
} else if (userPage != null && userPage.length() > 0) {
String alink = Util.getEmail(author);
%><a href="<%= userPage + Util.htmlize(alink) + userPageSuffix
%>"><%= Util.htmlize(author)%></a><%
if (bugPage != null && bugPage.length() > 0) {
cout = bugPattern.matcher(cout).replaceAll("<a href=\""
if (reviewPage != null && reviewPage.length() > 0) {
cout = reviewPattern.matcher(cout).replaceAll("<a href=\""
Set<String> files = entry.getFiles();
String jfile = Util.stripPathPrefix(path, ifile);
<a class="h" href="<%= context + Prefix.XREF_P + ifile %>"><%= jfile %></a><br/><%
<a class="h" href="<%= context + Prefix.XREF_P + ifile %>?r=<%= rev %>"><%= jfile %></a><br/><%
<p class="rssbadge"><a href="<%=context + Prefix.RSS_P + uriEncodedName
/* ---------------------- history.jsp end --------------------- */
include file="foot.jspf"