list.jsp revision 9bb6ab643caa1e04026da68eaef430c82a206350
341N/ASee LICENSE.txt included in this distribution for the specific
341N/Afile and include the License file at LICENSE.txt.
341N/A--%><%@ page import = "javax.servlet.*,
341N/A Project activeProject = Project.getProject(resourceFile);
341N/A Cookie[] cookies = request.getCookies();
604N/A project = cookie.getValue();
688N/A for (String aproj : project.split(" ")) {
688N/A if (activeProject.getPath().equalsIgnoreCase(aproj)) {
688N/A cookie.setPath(context + "/");
688N/A response.addCookie(cookie);
688N/A String[] files = resourceFile.list();
688N/A if(readMes != null && readMes.size() > 0) {
688N/A File xdir = new File(environment.getDataRootPath() + "/xref" + path);
688N/A for(int i = 0; i< readMes.size(); i++) {
688N/A BufferedReader br = new BufferedReader(new FileReader(new File(xdir, (String)readMes.get(i))));
688N/A %><h3><%=(String)readMes.get(i)%></h3><div id="src"><pre><%
341N/A response.sendError(404, "Revision not found");
341N/A FileAnalyzerFactory a = AnalyzerGuru.find(basename);
341N/A Genre g = AnalyzerGuru.getGenre(a);
493N/A response.sendError(404, "Revision not found");
341N/A a = AnalyzerGuru.find(in);
341N/A g = AnalyzerGuru.getGenre(a);
341N/A %> <div id="src">Binary file [Click <a href="<%=context%>/raw<%=path%>?r=<%=rev%>">here</a> to download] </div><%
341N/Aif (g == Genre.PLAIN) {
341N/A HistoryGuru.getInstance().annotate(resourceFile, rev) : null;
493N/A} else if (g == Genre.IMAGE) {
493N/A} else if (g == Genre.HTML) {
341N/A %> <h3 class="error">IO Error</h3> <p> <%=e.getMessage() %> </p> <%
} 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();
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) {
HistoryGuru.getInstance().annotate(resourceFile, rev) : null;
%><%@include file="foot.jspf"%><%
ef.close();