Indexer.java revision 1054
252N/A * See LICENSE.txt included in this distribution for the specific
252N/A * file and include the License file at LICENSE.txt.
return index;
boolean runIndex = true;
boolean update = true;
boolean optimizedChanged = false;
boolean searchRepositories = false;
boolean addProjects = false;
boolean refreshHistory = false;
boolean listFiles = false;
boolean createDict = false;
int cmd;
switch (cmd) {
createDict = true;
runIndex = false;
addProjects = true;
runIndex = false;
refreshHistory = true;
optimizedChanged = true;
searchRepositories = true;
System.err.println(" Ex: \"-Q on\" will just scan a \"chunk\" of the file and insert \"[..all..]\"");
System.err.println(" \"-Q off\" will try to build a more accurate list by reading the complete file.");
} catch (Exception e) {
++optind;
progress);
boolean searchRepositories,
boolean addProjects,
boolean refreshHistory,
boolean listFiles,
boolean createDict,
if (searchRepositories) {
if (addProjects) {
int ret;
return ret;
if (refreshHistory) {
if (listFiles) {
if (createDict) {
throws IOException {
if (update) {
public void run() {
if (update) {
} else if (optimize) {
} catch (Exception e) {
if (update) {
OpenGrokLogger.getLogger().log(Level.WARNING, "Received interrupt while waiting for executor to finish", exp);
log.log(Level.SEVERE, "Failed to send configuration to " + configHost+" (is web application server running with opengrok deployed?)", ex);
private Indexer() {