Indexer.java revision 65
* See LICENSE.txt included in this distribution for the specific
* file and include the License file at LICENSE.txt.
public class Indexer {
private static boolean verbose = true;
"opengrok.jar [-qe] [-c ctagsToUse] [-H] [-R filename] [-W filename] [-U hostname:port] [-P] [-w webapproot] [-i ignore_name [ -i ..]] [-n] [-s SRC_ROOT] DATA_ROOT [subtree .. ]\n" +
"\n Eg. java -jar opengrok.jar -s /usr/include /var/tmp/opengrok_data rpc";
boolean runIndex = true;
boolean searchRepositories = false;
boolean addProjects = false;
boolean refreshHistory = false;
verbose = false;
addProjects = true;
runIndex = false;
refreshHistory = true;
searchRepositories = true;
} catch (IOException e) {
if (searchRepositories) {
if (addProjects) {
if (refreshHistory) {
for (Map.Entry<String, ExternalRepository> entry : RuntimeEnvironment.getInstance().getRepositories().entrySet()) {
} catch (Exception e) {
e.printStackTrace();
if (runIndex) {
Index idx = new Index(verbose ? new StandardPrinter(System.out) : new NullPrinter(), new StandardPrinter(System.err));
} catch (Exception e) {