list.jsp revision 335
131N/ASee LICENSE.txt included in this distribution for the specific
131N/Afile and include the License file at LICENSE.txt.
131N/A--%><%@ page import = "javax.servlet.*,
131N/A Project activeProject = Project.getProject(resourceFile);
131N/A Cookie[] cookies = request.getCookies();
131N/A project = cookie.getValue();
131N/A for (String aproj : project.split(" ")) {
131N/A if (activeProject.getPath().equalsIgnoreCase(aproj)) {
131N/A cookie.setPath(context + "/");
131N/A response.addCookie(cookie);
227N/A String[] files = resourceFile.list();
131N/A if(readMes != null && readMes.size() > 0) {
131N/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");
FileAnalyzerFactory 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) {
Annotation annotation = annotate ? HistoryGuru.getInstance().annotate(resourceFile, rev) : null;
} 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><%
File xrefSource = new File(environment.getDataRootFile(), "/xref");
if (xrefFile.exists()) {
while((len = br.read(buf)) > 0) {
out.write(buf, 0, len);
br.close();
FileAnalyzerFactory 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) {
Annotation annotation = annotate ? HistoryGuru.getInstance().annotate(resourceFile, rev) : null;
%><%@include file="foot.jspf"%><%
ef.close();