list.jsp revision 73b36d5a6848ae9189f4f9e35a68947e89b1fe80
50N/ASee LICENSE.txt included in this distribution for the specific
50N/Afile and include the License file at LICENSE.txt.
50N/A--%><%@ page import = "javax.servlet.*,
50N/A String[] files = resourceFile.list();
202N/A if(readMes != null && readMes.size() > 0) {
72N/A File xdir = new File(environment.getDataRootPath() + "/xref" + path);
63N/A for(int i = 0; i< readMes.size(); i++) {
50N/A BufferedReader br = new BufferedReader(new FileReader(new File(xdir, (String)readMes.get(i))));
50N/A %><h3><%=(String)readMes.get(i)%></h3><div id="src"><pre><%
50N/A response.sendError(404, "Revision not found");
50N/A } else if (rev.matches("^[0-9]+(\\.[0-9]+)*$")) {
50N/A Class a = AnalyzerGuru.find(basename);
50N/A Genre g = AnalyzerGuru.getGenre(a);
50N/A response.sendError(404, "Revision not found");
111N/A a = AnalyzerGuru.find(in);
66N/A g = AnalyzerGuru.getGenre(a);
66N/A %> <div id="src">Binary file [Click <a href="<%=context%>/raw<%=path%>?r=<%=rev%>">here</a> to download] </div><%
72N/Aif (g == Genre.PLAIN) {
59N/A HistoryGuru.getInstance().annotate(resourceFile, rev) : null;
59N/A AnalyzerGuru.writeXref(a, in, out, annotation);
59N/A} else if (g == Genre.IMAGE) {
50N/A} else if (g == Genre.HTML) {
111N/A %> <h3 class="error">IO Error</h3> <p> <%=e.getMessage() %> </p> <%
111N/A } else if(g == Genre.IMAGE) {
111N/A %><div id="src"> Binary file [Click <a href="<%=context%>/raw<%=path%>?r=<%=rev%>">here</a> to download] </div><%
72N/A String xrefSource = environment.getDataRootPath() + "/xref";
66N/A if(xrefFile.exists() && !annotate) {
59N/A Class a = AnalyzerGuru.find(basename);
135N/A Genre g = AnalyzerGuru.getGenre(a);
135N/A a = AnalyzerGuru.find(bin);
135N/A g = AnalyzerGuru.getGenre(a);
135N/A if (g == Genre.IMAGE) {
111N/A } else if( g == Genre.HTML) {
119N/A } else if(g == Genre.PLAIN) {
119N/A HistoryGuru.getInstance().annotate(resourceFile, rev) : null;
119N/A AnalyzerGuru.writeXref(a, bin, out, annotation);