252N/A<%--
252N/A$Id$
252N/A
252N/ACDDL HEADER START
252N/A
252N/AThe contents of this file are subject to the terms of the
252N/ACommon Development and Distribution License (the "License").
252N/AYou may not use this file except in compliance with the License.
252N/A
252N/ASee LICENSE.txt included in this distribution for the specific
252N/Alanguage governing permissions and limitations under the License.
252N/A
252N/AWhen distributing Covered Code, include this CDDL HEADER in each
252N/Afile and include the License file at LICENSE.txt.
252N/AIf applicable, add the following below this CDDL HEADER, with the
252N/Afields enclosed by brackets "[]" replaced with your own identifying
252N/Ainformation: Portions Copyright [yyyy] [name of copyright owner]
252N/A
252N/ACDDL HEADER END
252N/A
252N/ACopyright 2010 Sun Microsystems, Inc. All rights reserved.
252N/AUse is subject to license terms.
252N/A
252N/APortions Copyright 2011 Jens Elkner.
252N/A
252N/A--%><%@page import="
252N/Ajava.io.FileReader,
252N/Ajava.util.EnumSet,
252N/Ajava.util.logging.Level,
252N/Ajava.util.logging.Logger,
252N/A
252N/Aorg.apache.lucene.search.Query,
252N/Aorg.opensolaris.opengrok.Info,
252N/Aorg.opensolaris.opengrok.configuration.Project,
252N/Aorg.opensolaris.opengrok.search.QueryBuilder,
252N/Aorg.opensolaris.opengrok.search.context.Context,
252N/Aorg.opensolaris.opengrok.web.PageConfig,
252N/Aorg.opensolaris.opengrok.web.Prefix,
252N/Aorg.opensolaris.opengrok.web.Util,
252N/Aorg.opensolaris.opengrok.web.WebappListener"
252N/A%><%@include
252N/A
252N/Afile="mast.jspf"
252N/A
252N/A%><%
252N/A/* ---------------------- more.jsp start --------------------- */
252N/A{
252N/A cfg = PageConfig.get(request);
252N/A QueryBuilder qbuilder = cfg.getQueryBuilder();
252N/A
252N/A try {
252N/A Query tquery = qbuilder.build();
252N/A if (tquery != null) {
252N/A Context sourceContext = new Context(tquery, qbuilder.getQueries());
252N/A%><p><span class="pagetitle">Lines Matching <b><%=
252N/A Util.htmlize(tquery.toString()) %></b></span></p>
252N/A<div id="more" style="line-height:1.5em;">
252N/A <pre><%
252N/A sourceContext.getContext(new FileReader(cfg.getResourceFile()), out,
252N/A request.getContextPath() + Prefix.XREF_P, null, cfg.getPath(),
252N/A null, false, null);
252N/A %></pre>
252N/A</div><%
}
} catch (Exception e) {
Logger.getLogger("more.jsp").log(Level.WARNING, e.getMessage());
}
}
/* ---------------------- more.jsp end --------------------- */
%><%@
include file="foot.jspf"
%>