list.jsp revision 847
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.*,
123N/A Project activeProject = Project.getProject(resourceFile);
123N/A Cookie[] cookies = request.getCookies();
123N/A project = cookie.getValue();
123N/A for (String aproj : project.split(" ")) {
123N/A if (activeProject.getPath().equalsIgnoreCase(aproj)) {
123N/A cookie.setPath(context + "/");
123N/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;
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");
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) {
335N/A Annotation annotation = annotate ? HistoryGuru.getInstance().annotate(resourceFile, rev) : null;