list.jsp revision 58
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.*,
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]+)*$")) {
0N/A Class 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);
0N/A %> <div id="src">Binary file [Click <a href="<%=context%>/raw<%=path%>?r=<%=rev%>">here</a> to download] </div><%
0N/Aif (g == Genre.PLAIN) {
0N/A AnalyzerGuru.writeXref(a, in, out);
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><%
58N/A String xrefSource = environment.getSourceRootPath() + "/xref";
0N/A if(xrefFile.exists()) {
0N/A Class 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) {
0N/A AnalyzerGuru.writeXref(a, bin, out);