list.jsp revision 921
460N/ASee LICENSE.txt included in this distribution for the specific
460N/Afile and include the License file at LICENSE.txt.
460N/A--%><%@ page import = "javax.servlet.*,
460N/A var a = document.getElementsByTagName("a");
460N/A el.innerHTML='';
460N/A Project activeProject = Project.getProject(resourceFile);
460N/A//TODO: somehow integrate below with projects.jspf
460N/A Cookie[] cookies = request.getCookies();
460N/A for (String proj : cookie.getValue().split(",")) {
460N/A if (Project.getByDescription(proj) != null) {
460N/A project.add(proj);
// set this in case there is no project selected or current cookie doesn't contain current project from the link, so the rest of search works 100% :)
StringBuffer sproject=new StringBuffer(activeProject.getDescription()+",");
cookie.setPath(context + "/");
response.addCookie(cookie);
String[] files = resourceFile.list();
List<String> readMes = dl.listTo(resourceFile, out, path, files);
if(readMes != null && readMes.size() > 0) {
File xdir = new File(environment.getDataRootPath() + "/xref" + path);
if (readmeFile.exists()) {
while((len = br.read(buf)) > 0) {
out.write(buf, 0, len);
br.close();
response.sendError(404, "Revision not found");
FileAnalyzerFactory a = AnalyzerGuru.find(basename);
Genre g = AnalyzerGuru.getGenre(a);
response.sendError(404, "Revision not found");
a = AnalyzerGuru.find(in);
g = AnalyzerGuru.getGenre(a);
%><div id="src">Binary file [Click <a href="<%=context%>/raw<%=path%>?r=<%=rev%>">here</a> to download] </div><%
if (g == Genre.PLAIN) {
Annotation annotation = annotate ? HistoryGuru.getInstance().annotate(resourceFile, rev) : null;
//annotation.writeTooltipMap(out); //not needed yet
} else if (g == Genre.IMAGE) {
} else if (g == Genre.HTML) {
while((len = br.read(buf)) > 0) {
out.write(buf, 0, len);
%> <h3 class="error">IO Error</h3> <p> <%=e.getMessage() %> </p> <%
in.close();
} else if(g == Genre.IMAGE) {
%><div id="src"> Binary file [Click <a href="<%=context%>/raw<%=path%>?r=<%=rev%>">here</a> to download] </div><%
File xrefSource = new File(environment.getDataRootFile(), "/xref");
if (environment.isCompressXref() ) {
if (xrefFile.exists()) {
if (xrefFile.exists()) {
while((len = br.read(buf)) > 0) {
out.write(buf, 0, len);
br.close();
FileAnalyzerFactory a = AnalyzerGuru.find(basename);
Genre g = AnalyzerGuru.getGenre(a);
a = AnalyzerGuru.find(bin);
g = AnalyzerGuru.getGenre(a);
if (g == Genre.IMAGE) {
} else if( g == Genre.HTML) {
while((len = br.read(buf)) > 0) {
out.write(buf, 0, len);
} else if(g == Genre.PLAIN) {
Annotation annotation = annotate ? HistoryGuru.getInstance().annotate(resourceFile, rev) : null;
%><%@include file="foot.jspf"%><%
ef.close();