Indexer.java revision 1238
0N/A * See LICENSE.txt included in this distribution for the specific
0N/A * file and include the License file at LICENSE.txt.
260N/A boolean optimizedChanged = false;
111N/A boolean searchRepositories = false;
111N/A boolean addProjects = false;
111N/A boolean refreshHistory = false;
77N/A boolean createDict = false;
173N/A createDict = true;
253N/A addProjects = true;
119N/A refreshHistory = true;
126N/A System.err.println(" Ex: \"-O on\" will optimize the database as part of the index generation");
210N/A optimizedChanged = true;
0N/A searchRepositories = true;
260N/A System.err.println(" Ex: \"-Q on\" will just scan a \"chunk\" of the file and insert \"[..all..]\"");
0N/A System.err.println(" \"-Q off\" will try to build a more accurate list by reading the complete file.");
progress);
boolean searchRepositories,
boolean addProjects,
boolean refreshHistory,
boolean listFiles,
boolean createDict,
if (listRepoPathes) {
boolean all = false;
all = true;
if (all) {
} catch (HistoryException e) {
+ e.getLocalizedMessage());
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() {