Configuration.java revision 850
30N/A * See LICENSE.txt included in this distribution for the specific
30N/A * file and include the License file at LICENSE.txt.
58N/A * package scope, but that didn't work with the XMLDecoder/XMLEncoder.
418N/Apublic final class Configuration {
320N/A private boolean historyCache;
77N/A private int historyCacheTime;
30N/A private boolean historyCacheInDB;
30N/A private boolean generateHtml;
58N/A private int indexWordLimit;
145N/A private boolean allowLeadingWildcard;
490N/A private boolean remoteScmSupported;
490N/A private boolean optimizeDatabase;
490N/A private boolean useLuceneLocking;
490N/A private boolean compressXref;
490N/A private boolean indexVersionedFilesOnly;
490N/A private int hitsPerPage;
490N/A private int cachePages;
77N/A public Configuration() {
77N/A setHistoryCache(true);
58N/A setHistoryCacheInDB(false);
77N/A //setUrlPrefix("../s?"); // TODO generate relative search paths, get rid of -w <webapp> option to indexer !
77N/A setVerbose(false);
30N/A setGenerateHtml(true);
58N/A setQuickContextScan(true);
58N/A setRemoteScmSupported(false);
77N/A setOptimizeDatabase(true);
77N/A setUsingLuceneLocking(false);
77N/A setCompressXref(true);
77N/A setIndexVersionedFilesOnly(false);
77N/A public int getCachePages() {
145N/A return cachePages;
30N/A public int getHitsPerPage() {
58N/A return hitsPerPage;
77N/A public boolean isHistoryCache() {
58N/A return historyCache;
58N/A public int getHistoryCacheTime() {
58N/A return historyCacheTime;
77N/A public boolean isHistoryCacheInDB() {
77N/A return historyCacheInDB;
77N/A return sourceRoot;
99N/A return repositories;
99N/A public boolean isGenerateHtml() {
99N/A return generateHtml;
99N/A return defaultProject;
99N/A public int getIndexWordLimit() {
99N/A return indexWordLimit;
77N/A public boolean isAllowLeadingWildcard() {
77N/A return allowLeadingWildcard;
145N/A private boolean quickContextScan;
58N/A public boolean isQuickContextScan() {
77N/A return quickContextScan;
58N/A return ignoredNames;
335N/A return bugPattern;
335N/A return reviewPage;
335N/A return reviewPattern;
58N/A public boolean isRemoteScmSupported() {
58N/A return remoteScmSupported;
58N/A public boolean isOptimizeDatabase() {
58N/A return optimizeDatabase;
77N/A public boolean isUsingLuceneLocking() {
145N/A return useLuceneLocking;
77N/A public boolean isCompressXref() {
77N/A return compressXref;
99N/A public boolean isIndexVersionedFilesOnly() {
99N/A return indexVersionedFilesOnly;
124N/A return databaseDriver;
124N/A return databaseUrl;
125N/A e.writeObject(this);
145N/A public static Configuration makeXMLStringAsConfiguration(String xmlconfig) throws IOException {