list.jsp revision 477
0N/ASee LICENSE.txt included in this distribution for the specific
0N/Afile and include the License file at LICENSE.txt.
1244N/A--%><%@ page import = "javax.servlet.*,
1281N/A Project activeProject = Project.getProject(resourceFile);
1281N/A Cookie[] cookies = request.getCookies();
1281N/A project = cookie.getValue();
335N/A for (String aproj : project.split(" ")) {
1364N/A if (activeProject.getPath().equalsIgnoreCase(aproj)) {
1281N/A cookie.setPath(context + "/");
1281N/A response.addCookie(cookie);
1281N/A String[] files = resourceFile.list();
1281N/A if(readMes != null && readMes.size() > 0) {
1281N/A File xdir = new File(environment.getDataRootPath() + "/xref" + path);
1325N/A if (readmeFile.exists()) {
1325N/A OpenGrokLogger.getLogger().log(Level.WARNING, "An error occured while reading/writing readme:", e);
1325N/A response.sendError(404, "Revision not found");
1325N/A FileAnalyzerFactory a = AnalyzerGuru.find(basename);
1325N/A Genre g = AnalyzerGuru.getGenre(a);
1368N/A response.sendError(404, "Revision not found");
1368N/A a = AnalyzerGuru.find(in);
1368N/A g = AnalyzerGuru.getGenre(a);
1368N/A %><div id="src">Binary file [Click <a href="<%=context%>/raw<%=path%>?r=<%=rev%>">here</a> to download] </div><%
1325N/A if (g == Genre.PLAIN) {
1325N/A Annotation annotation = annotate ? HistoryGuru.getInstance().annotate(resourceFile, rev) : null;
1325N/A } else if (g == Genre.IMAGE) {
1325N/A } else if (g == Genre.HTML) {
1368N/A %> <h3 class="error">IO Error</h3> <p> <%=e.getMessage() %> </p> <%
1368N/A } else if(g == Genre.IMAGE) {
1368N/A %><div id="src"> Binary file [Click <a href="<%=context%>/raw<%=path%>?r=<%=rev%>">here</a> to download] </div><%
1368N/A File xrefSource = new File(environment.getDataRootFile(), "/xref");
1368N/A if (xrefFile.exists()) {
1368N/A FileAnalyzerFactory a = AnalyzerGuru.find(basename);
1368N/A Genre g = AnalyzerGuru.getGenre(a);
1368N/A a = AnalyzerGuru.find(bin);
1186N/A g = AnalyzerGuru.getGenre(a);
1368N/A if (g == Genre.IMAGE) {
1281N/A } else if( g == Genre.HTML) {
1281N/A } else if(g == Genre.PLAIN) {
1281N/A Annotation annotation = annotate ? HistoryGuru.getInstance().annotate(resourceFile, rev) : null;