Configuration.java revision 480
* See LICENSE.txt included in this distribution for the specific
* file and include the License file at LICENSE.txt.
* package scope, but that didn't work with the XMLDecoder/XMLEncoder.
public final class Configuration {
private boolean historyCache;
private int historyCacheTime;
private boolean generateHtml;
private int indexWordLimit;
private boolean verbose;
private boolean allowLeadingWildcard;
private boolean remoteScmSupported;
private boolean optimizeDatabase;
private boolean useLuceneLocking;
private boolean compressXref;
private boolean indexVersionedFilesOnly;
public Configuration() {
setHistoryCache(true);
setVerbose(false);
setGenerateHtml(true);
setQuickContextScan(true);
setRemoteScmSupported(false);
setOptimizeDatabase(true);
setUsingLuceneLocking(false);
setCompressXref(true);
setIndexVersionedFilesOnly(false);
return ctags;
public boolean isHistoryCache() {
return historyCache;
public int getHistoryCacheTime() {
return historyCacheTime;
return projects;
return sourceRoot;
return dataRoot;
return repositories;
return urlPrefix;
public boolean isGenerateHtml() {
return generateHtml;
return defaultProject;
public int getIndexWordLimit() {
return indexWordLimit;
public boolean isVerbose() {
return verbose;
public boolean isAllowLeadingWildcard() {
return allowLeadingWildcard;
private boolean quickContextScan;
public boolean isQuickContextScan() {
return quickContextScan;
return ignoredNames;
return userPage;
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;
e.writeObject(this);
e.close();
d.close();