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