list.jsp revision 1108
0N/ASee LICENSE.txt included in this distribution for the specific
0N/Afile and include the License file at LICENSE.txt.
1244N/A--%><%@ page import = "javax.servlet.*,
1281N/A<script type="text/javascript">/* <![CDATA[ */
1281N/A contents += "<b><a href=\"#\" onclick=\"javascript:add_highlight();return false;\" title=\"Add highlight\">Highlight</a></b><br>";
1281N/A for (var i = 0; i < class_names.length; i++)
1281N/A if (this.className == class_names[i])
1281N/A var fname = this.innerHTML;
1281N/A var line = this.getAttribute("ln");
1281N/A this.innerHTML + "</a><br>";
1186N/A for (var i = 0; i < class_names.length; i++)
1281N/Adocument.sym_div_top = 100;
1281N/A document.sym_div_left = $(window).width() - (document.sym_div_width + document.sym_div_left_margin);
1281N/A return document.sym_div_left;
1281N/A document.sym_div_height = $(window).height() - document.sym_div_top - document.sym_div_height_margin;
1281N/A return document.sym_div_height;
1281N/A return document.sym_div_top;
1186N/A return document.sym_div_width;
1281N/A if (document.sym_div == null)
1186N/A document.sym_div.id = "sym_div";
1186N/A document.sym_div.className = "sym_list_style";
1281N/A document.sym_div.style.margin = "0px auto";
1186N/A document.sym_div.style.width = get_sym_div_width() + "px";
1186N/A document.sym_div.style.height = get_sym_div_height() + "px";
1281N/A document.sym_div.style.top = get_sym_div_top() + "px";
1281N/A document.sym_div.style.left = get_sym_div_left() + "px";
1281N/A document.sym_div.innerHTML = get_sym_list_contents();
1281N/A if (document.sym_div_shown == 1)
1186N/A document.sym_div.className = "sym_list_style_hide";
1281N/A document.sym_div.style.height = get_sym_div_height() + "px";
1281N/A document.sym_div.style.width = get_sym_div_width() + "px";
1281N/A document.sym_div.style.top = get_sym_div_top() + "px";
1281N/A document.sym_div.style.left = get_sym_div_left() + "px";
1281N/A document.sym_div.className = "sym_list_style";
1186N/A if (document.sym_div_shown == 1)
1186N/A document.sym_div.style.left = get_sym_div_left() + "px";
1281N/A document.sym_div.style.height = get_sym_div_height() + "px";
var tbox = document.getElementById('input_highlight');
HighlightKeyword(tbox.value);
ef.close();
Project activeProject = Project.getProject(resourceFile);
//TODO: somehow integrate below with projects.jspf
Cookie[] cookies = request.getCookies();
for (String proj : cookie.getValue().split(",")) {
if (Project.getByDescription(proj) != null) {
project.add(proj);
// set this in case there is no project selected or current cookie doesn't contain current project from the link, so the rest of search works 100% :)
StringBuffer sproject=new StringBuffer(activeProject.getDescription()+",");
cookie.setPath(context + "/");
response.addCookie(cookie);
String[] files = resourceFile.list();
List<String> readMes = dl.listTo(resourceFile, out, path, files);
if(readMes != null && readMes.size() > 0) {
File xdir = new File(environment.getDataRootPath() + "/xref" + path);
if (readmeFile.exists()) {
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;
//annotation.writeTooltipMap(out); //not needed yet
} 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 (environment.isCompressXref() ) {
if (xrefFile.exists()) {
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();