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