Indexer.java revision 240
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] 119N/A * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 0N/A * Use is subject to license terms. 0N/A * Creates and updates an inverted source index 0N/A * as well as generates Xref, file stats etc., if specified 205N/A "opengrok.jar [-qe] [-c ctagsToUse] [-H] [-R filename] [-W filename] [-U hostname:port] [-P] [-p project-path] [-w webapproot] [-i ignore_name [ -i ..]] [-n] [-s SRC_ROOT] [-d DATA_ROOT] [subtree .. ]\n" +
205N/A " opengrok.jar [-O | -l | -t] [-d DATA_ROOT]\n" +
0N/A "\t-q run quietly\n" +
119N/A "\t-v Print progress information\n" +
0N/A "\t-e economical - consumes less disk space\n" +
0N/A "\t-c path to ctags\n" +
58N/A "\t-R Read configuration from file\n" +
58N/A "\t-W Write the current running configuration\n" +
58N/A "\t-U Send configuration to hostname:port\n" +
58N/A "\t-P Generate a project for each toplevel directory\n" +
77N/A "\t-p Use the project specified by the project path as the default project\n" +
119N/A "\t-Q on/off Turn on / off quick context scan. By default only the first 32k\n" +
119N/A "\t of a file is scanned and a '[..all..]' link is inserted if the\n" +
119N/A "\t is bigger. Activating this option may slow down the server.\n" +
58N/A "\t-n Do not generate indexes\n" +
240N/A "\t-H Generate history cache for all external repositories\n" +
240N/A "\t-h /path/to/repos Generate history cache for the specified repos (absolute path from source root)\n" +
173N/A "\t-r on/off Turn on / off support for remote SCM systems\n" +
144N/A "\t-L laf Use \"laf\" as the look'n'feel for the webapp\n" +
0N/A "\t-w root URL of the webapp, default is /source\n" +
0N/A "\t-i ignore named files or directories\n" +
126N/A "\t-A ext:analyzer Files with extension ext should be analyzed with the named class\n" +
99N/A "\t-m Maximum words in a file to index\n" +
125N/A "\t-a on/off Allow or disallow leading wildcards in a search\n" +
77N/A "\t-S Search and add \"External\" repositories (Mercurial etc)\n" +
0N/A "\t-s SRC_ROOT is root directory of source tree\n" +
0N/A "\t default: last used SRC_ROOT\n" +
205N/A "\t-d DATA_ROOT - is where output of indexer is stored\n" +
0N/A "\tsubtree - only specified files or directories under SRC_ROOT are processed\n" +
0N/A "\t if not specified all files under SRC_ROOT are processed\n" +
119N/A "\t-l list all files in the index\n" +
0N/A "\t-t lists tokens occuring more than 5 times. Useful for building a unix dictionary\n" +
65N/A * Program entry point 65N/A * @param argv argument vector 0N/A //Run Scope GUI here I am running Indexing GUI for testing 0N/A //new IndexerWizard(null).setVisible(true); 77N/A // Parse command line options: 111N/A // We need to read the configuration file first, since we 111N/A // will try to overwrite options.. 111N/A // Now we can handle all the other options.. 119N/A System.
err.
println(
" \"-Q off\" will try to build a more accurate list by reading the complete file.");
210N/A " as a FileAnalyzerFactory");
77N/A // The projects should be sorted...