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). 1185N/A * Obtain the history for the source file <var>src</var> and write out 1185N/A * matching History log entries. 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. 1113N/A * Writes matching History log entries from 'in' to 'out' or 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. 1065N/A "Exactly one of out and hits should be non-null");
1111N/A // we currently generate the diff to previous revision 1065N/A * Write a match 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 1113N/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 1065N/A * @param out where to write the HTML 1065N/A * @param str the string to print 1065N/A * @param flatten should multi-line strings be flattened to a single 1065N/A * line? If {@code true}, replace newline with space.