list.jsp revision 202
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 if (project == null || project.length() == 0) {
123N/A project = activeProject.getPath();
123N/A project = project + " " + activeProject.getPath();
123N/A Cookie cookie = new Cookie("OpenGrok/project", project);
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);
0N/A for(int i = 0; i< readMes.size(); i++) {
0N/A BufferedReader br = new BufferedReader(new FileReader(new File(xdir, (String)readMes.get(i))));
0N/A %><h3><%=(String)readMes.get(i)%></h3><div id="src"><pre><%
0N/A response.sendError(404, "Revision not found");
0N/A } else if (rev.matches("^[0-9]+(\\.[0-9]+)*$")) {
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);
151N/A %> <div id="src">Binary file [Click <a href="<%=context%>/raw<%=uriEncodedName%>?r=<%=rev%>">here</a> to download] </div><%
0N/Aif (g == Genre.PLAIN) {
89N/A HistoryGuru.getInstance().annotate(resourceFile, rev) : null;
89N/A AnalyzerGuru.writeXref(a, in, out, annotation);
0N/A} else if (g == Genre.IMAGE) {
0N/A} else if (g == Genre.HTML) {
9N/A %> <h3 class="error">IO Error</h3> <p> <%=e.getMessage() %> </p> <%
0N/A } else if(g == Genre.IMAGE) {
0N/A %><div id="src"> Binary file [Click <a href="<%=context%>/raw<%=path%>?r=<%=rev%>">here</a> to download] </div><%
81N/A String xrefSource = environment.getDataRootPath() + "/xref";
89N/A if(xrefFile.exists() && !annotate) {
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) {
89N/A HistoryGuru.getInstance().annotate(resourceFile, rev) : null;
89N/A AnalyzerGuru.writeXref(a, bin, out, annotation);