list.jsp revision 878
0N/ASee LICENSE.txt included in this distribution for the specific
0N/Afile and include the License file at LICENSE.txt.
0N/A--%><%@ page import = "javax.servlet.*,
878N/A var a = document.getElementsByTagName("a");
850N/A el.innerHTML='';
123N/A Project activeProject = Project.getProject(resourceFile);
123N/A Cookie[] cookies = request.getCookies();
867N/A for (String proj : cookie.getValue().split(",")) {
867N/A if (Project.getByDescription(proj) != null) {
867N/A project.add(proj);
867N/A// 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% :)
867N/A StringBuffer sproject=new StringBuffer(activeProject.getDescription()+",");
867N/A cookie.setPath(context + "/");
867N/A response.addCookie(cookie);
0N/A String[] files = resourceFile.list();
0N/A if(readMes != null && readMes.size() > 0) {
58N/A File xdir = new File(environment.getDataRootPath() + "/xref" + path);
477N/A if (readmeFile.exists()) {
477N/A OpenGrokLogger.getLogger().log(Level.WARNING, "An error occured while reading/writing readme:", e);
335N/A response.sendError(404, "Revision not found");
202N/A FileAnalyzerFactory a = AnalyzerGuru.find(basename);
0N/A Genre g = AnalyzerGuru.getGenre(a);
0N/A response.sendError(404, "Revision not found");
0N/A a = AnalyzerGuru.find(in);
0N/A g = AnalyzerGuru.getGenre(a);
335N/A %><div id="src">Binary file [Click <a href="<%=context%>/raw<%=path%>?r=<%=rev%>">here</a> to download] </div><%
335N/A if (g == Genre.PLAIN) {
335N/A Annotation annotation = annotate ? HistoryGuru.getInstance().annotate(resourceFile, rev) : null;
878N/A //annotation.writeTooltipMap(out); //not needed yet
335N/A } else if (g == Genre.IMAGE) {
335N/A } else if (g == Genre.HTML) {
335N/A %> <h3 class="error">IO Error</h3> <p> <%=e.getMessage() %> </p> <%
0N/A } else if(g == Genre.IMAGE) {
335N/A %><div id="src"> Binary file [Click <a href="<%=context%>/raw<%=path%>?r=<%=rev%>">here</a> to download] </div><%
335N/A File xrefSource = new File(environment.getDataRootFile(), "/xref");
849N/A if (environment.isCompressXref() ) {
849N/A if (xrefFile.exists()) {
335N/A if (xrefFile.exists()) {
202N/A FileAnalyzerFactory a = AnalyzerGuru.find(basename);
0N/A Genre g = AnalyzerGuru.getGenre(a);
0N/A a = AnalyzerGuru.find(bin);
0N/A g = AnalyzerGuru.getGenre(a);
0N/A if (g == Genre.IMAGE) {
0N/A } else if( g == Genre.HTML) {
0N/A } else if(g == Genre.PLAIN) {
878N/A Annotation annotation = annotate ? HistoryGuru.getInstance().annotate(resourceFile, rev) : null;