Indexer.java revision 106
94N/A * CDDL HEADER START 94N/A * The contents of this file are subject to the terms of the 94N/A * Common Development and Distribution License (the "License"). 94N/A * You may not use this file except in compliance with the License. 94N/A * language governing permissions and limitations under the License. 94N/A * When distributing Covered Code, include this CDDL HEADER in each 94N/A * If applicable, add the following below this CDDL HEADER, with the 94N/A * fields enclosed by brackets "[]" replaced with your own identifying 94N/A * information: Portions Copyright [yyyy] [name of copyright owner] 94N/A * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 94N/A * Use is subject to license terms. 94N/A * Creates and updates an inverted source index 94N/A * as well as generates Xref, file stats etc., if specified 94N/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] DATA_ROOT [subtree .. ]\n" +
94N/A " opengrok.jar [-O | -l | -t] DATA_ROOT\n" +
94N/A "\t-q run quietly\n" +
94N/A "\t-e economical - consumes less disk space\n" +
94N/A "\t-c path to ctags\n" +
94N/A "\t-R Read configuration from file\n" +
94N/A "\t-W Write the current running configuration\n" +
94N/A "\t-U Send configuration to hostname:port\n" +
94N/A "\t-P Generate a project for each toplevel directory\n" +
94N/A "\t-p Use the project specified by the project path as the default project\n" +
94N/A "\t-Q +/- Turn on / off quick context scan. By default only the first 32k\n" +
94N/A "\t of a file is scanned and a '[..all..]' link is inserted if the\n" +
94N/A "\t is bigger. Activating this option may slow down the server.\n" +
94N/A "\t-n Do not generate indexes\n" +
94N/A "\t-H Start a threadpool to read history history\n" +
94N/A "\t-w root URL of the webapp, default is /source\n" +
94N/A "\t-i ignore named files or directories\n" +
94N/A "\t-m Maximum words in a file to index\n" +
94N/A "\t-S Search and add \"External\" repositories (Mercurial etc)\n" +
94N/A "\t-s SRC_ROOT is root directory of source tree\n" +
94N/A "\t default: last used SRC_ROOT\n" +
94N/A "\tDATA_ROOT - is where output of indexer is stored\n" +
94N/A "\tsubtree - only specified files or directories under SRC_ROOT are processed\n" +
94N/A "\t if not specified all files under SRC_ROOT are processed\n" +
94N/A "\n\t-O optimize the index \n" +
94N/A "\t-l list all files in the index \n" +
94N/A "\t-t lists tokens occuring more than 5 times. Useful for building a unix dictionary\n" +
94N/A * Program entry point 94N/A * @param argv argument vector //Run Scope GUI here I am running Indexing GUI for testing //new IndexerWizard(null).setVisible(true); // Parse command line options: System.
err.
println(
"ERROR: You should pass either '+' or '-' as argument to -Q");
// The projects should be sorted...