Indexer.java revision 297
919N/A * See LICENSE.txt included in this distribution for the specific
919N/A * file and include the License file at LICENSE.txt.
public class Indexer {
boolean runIndex = true;
boolean searchRepositories = false;
boolean addProjects = false;
boolean refreshHistory = false;
boolean listFiles = false;
boolean createDict = false;
int cmd;
switch (cmd) {
createDict = true;
runIndex = false;
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) {
e.printStackTrace();
++optind;
} catch (IOException e) {
if (searchRepositories) {
if (addProjects) {
int ret;
return ret;
if (refreshHistory) {
if (listFiles) {
if (createDict) {
if (runIndex) {
public void run() {
if (update) {
} else if (optimize) {
} catch (Exception e) {
e.printStackTrace();
} catch (Exception e) {
} catch (Exception e) {
e.printStackTrace();
private Indexer() {