0N/A * The contents of this file are subject to the terms of the 0N/A * Common Development and Distribution License (the "License"). 0N/A * You may not use this file except in compliance with the License. 0N/A * language governing permissions and limitations under the License. 0N/A * When distributing Covered Code, include this CDDL HEADER in each 0N/A * If applicable, add the following below this CDDL HEADER, with the 0N/A * fields enclosed by brackets "[]" replaced with your own identifying 0N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1065N/A * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 0N/A * it is supposed to get the matching lines from history log files. 0N/A * since lucene does not easily give the match context. 1138N/A * Map whose keys tell which fields to look for in the history, and 1138N/A * whose values tell if the field is case insensitive (true for 1138N/A * insensitivity, false for sensitivity). 1469N/A * Create a new context wrt. to the given query. 1469N/A * @param query query to use. 1469N/A * Check, whether one ore more line matchers (query terms) are present. 1469N/A * @return {@code true} if present. 1469N/A * @see #HistoryContext(Query) 1469N/A * Obtain the history for the source file <var>filename</var> and append 1469N/A * matches to <var>hits</var>. 1469N/A * @param filename the source file for which the history should be fetched 1469N/A * @param path the path of the source file (rooted at SOURCE_ROOT) 1469N/A * @param hits where to append matches. 1469N/A * @return {@code true} if matches where found. 1469N/A * write out matching history log entries htmlized. 1469N/A * @param parent the directory which contains the source file 1469N/A * @param basename the basename of the source file 1469N/A * @param path the path of the source file (rooted at SOURCE_ROOT) 1469N/A * @param out where to write htmlized results 1469N/A * @param context the servlet context path of the application (the path 1469N/A * @return {@code true} if matches where found and written out. 1185N/A * Obtain the history for the source file <var>src</var> and write out 1469N/A * matching history log entries htmlized. 1185N/A * @param src the source file represented by <var>path</var> 1185N/A * @param path the path of the file (rooted at SOURCE_ROOT) 1185N/A * @param out write destination 1190N/A * @param context the servlet context path of the application (the path 1185N/A * @return {@code true} if at least one line has been written out. 1469N/A * Writes matching history log entries from 'in' either htmlized to 'out' 1469N/A * or append them to 'hits'. 829N/A * @param in the history to fetch entries from 0N/A * @param out to write matched context 1113N/A * @param path path to the file 1113N/A * @param wcontext web context - beginning of url 1065N/A // There should be exactly one destination for the output. If 1065N/A // none or both are specified, it's a bug. 1469N/A "Exactly one of out and hits should be non-null");
1469N/A // this prefetch mechanism is here because of the diff link 1469N/A // we currently generate the diff to previous revision 1469N/A * Write a match htmlized to a stream. 1065N/A * @param out the receiving stream 1065N/A * @param line the matching line 1065N/A * @param start start position of the match 1065N/A * @param end position of the first char after the match 1065N/A * @param flatten should multi-line log entries be flattened to a single 1113N/A * @param path path to the file 1469N/A * @param wcontext web context (begin of url). 1113N/A * @param rev current revision 1065N/A * line? If {@code true}, replace newline with space. 1113N/A //does below need to be encoded? see bug 16985 1469N/A .
append(
"\" title=\"diff to previous version\">diff</a> ");