Configuration.java revision 1252
352N/A * See LICENSE.txt included in this distribution for the specific
352N/A * file and include the License file at LICENSE.txt.
352N/A * package scope, but that didn't work with the XMLDecoder/XMLEncoder.
352N/Apublic final class Configuration {
352N/A private boolean historyCache;
1470N/A private int historyCacheTime;
1470N/A private boolean historyCacheInDB;
1470N/A private boolean generateHtml;
352N/A /** Default project will be used, when no project is selected and no project is in cookie, so basically only the first time you open the first page, or when you clear your web cookies */
377N/A private int indexWordLimit;
352N/A //if below is set, then we count how many files per project we need to process and print percentage of completion per project
352N/A private boolean printProgress;
352N/A private boolean allowLeadingWildcard;
1470N/A private boolean remoteScmSupported;
1470N/A private boolean optimizeDatabase;
1470N/A private boolean useLuceneLocking;
1470N/A private boolean compressXref;
1470N/A private boolean indexVersionedFilesOnly;
1470N/A private int hitsPerPage;
352N/A private int cachePages;
352N/A private int scanningDepth;
365N/A private boolean obfuscatingEMailAddresses;
1092N/A private boolean chattyStatusPage;
1092N/A public int getTabSize() {
1092N/A public int getScanningDepth() {
1092N/A return scanningDepth;
1092N/A public Configuration() {
1092N/A setHistoryCache(true);
1214N/A setHistoryCacheInDB(false);
1092N/A //setUrlPrefix("../s?"); // TODO generate relative search paths, get rid of -w <webapp> option to indexer !
1092N/A setVerbose(false);
1092N/A setPrintProgress(false);
1092N/A setGenerateHtml(true);
1092N/A setQuickContextScan(true);
1092N/A setRemoteScmSupported(false);
1092N/A setOptimizeDatabase(true);
1092N/A setUsingLuceneLocking(false);
1092N/A setCompressXref(true);
1092N/A setIndexVersionedFilesOnly(false);
1470N/A public int getCachePages() {
1470N/A return cachePages;
1470N/A public int getHitsPerPage() {
1470N/A return hitsPerPage;
665N/A public boolean isHistoryCache() {
665N/A return historyCache;
480N/A public int getHistoryCacheTime() {
1470N/A return historyCacheTime;
1470N/A public boolean isHistoryCacheInDB() {
1470N/A return historyCacheInDB;
593N/A return sourceRoot;
1470N/A return repositories;
1470N/A * org.opensolaris.opengrok.analysis.executables.JavaClassAnalyzer} as well
876N/A public boolean isGenerateHtml() {
593N/A return generateHtml;
return defaultProject;
public int getIndexWordLimit() {
return indexWordLimit;
public boolean isVerbose() {
return verbose;
public boolean isPrintProgress() {
return printProgress;
public boolean isAllowLeadingWildcard() {
return allowLeadingWildcard;
private boolean quickContextScan;
public boolean isQuickContextScan() {
return quickContextScan;
return ignoredNames;
return includedNames;
return userPage;
return userPageSuffix;
return bugPage;
return bugPattern;
return reviewPage;
return reviewPattern;
return webappLAF;
public boolean isRemoteScmSupported() {
return remoteScmSupported;
public boolean isOptimizeDatabase() {
return optimizeDatabase;
public boolean isUsingLuceneLocking() {
return useLuceneLocking;
public boolean isCompressXref() {
return compressXref;
public boolean isIndexVersionedFilesOnly() {
return indexVersionedFilesOnly;
return databaseDriver;
return databaseUrl;
return allowedSymlinks;
public boolean isObfuscatingEMailAddresses() {
return obfuscatingEMailAddresses;
public boolean isChattyStatusPage() {
return chattyStatusPage;
e.writeObject(this);
e.close();
return ret;
d.close();