Configuration.java revision 1115
58N/A * See LICENSE.txt included in this distribution for the specific
58N/A * file and include the License file at LICENSE.txt.
77N/A * package scope, but that didn't work with the XMLDecoder/XMLEncoder.
418N/Apublic final class Configuration {
58N/A private boolean historyCache;
58N/A private int historyCacheTime;
773N/A private boolean historyCacheInDB;
65N/A private boolean generateHtml;
894N/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 */
99N/A private int indexWordLimit;
1115N/A //if below is set, then we count how many files per project we need to process and print percentage of completion per project
1115N/A private boolean printProgress;
125N/A private boolean allowLeadingWildcard;
173N/A private boolean remoteScmSupported;
253N/A private boolean optimizeDatabase;
296N/A private boolean useLuceneLocking;
335N/A private boolean compressXref;
480N/A private boolean indexVersionedFilesOnly;
816N/A private int hitsPerPage;
816N/A private int cachePages;
993N/A return scanningDepth;
58N/A public Configuration() {
58N/A setHistoryCache(true);
773N/A setHistoryCacheInDB(false);
850N/A //setUrlPrefix("../s?"); // TODO generate relative search paths, get rid of -w <webapp> option to indexer !
99N/A setVerbose(false);
1115N/A setPrintProgress(false);
101N/A setGenerateHtml(true);
106N/A setQuickContextScan(true);
173N/A setRemoteScmSupported(false);
253N/A setOptimizeDatabase(true);
296N/A setUsingLuceneLocking(false);
335N/A setCompressXref(true);
480N/A setIndexVersionedFilesOnly(false);
816N/A public int getCachePages() {
816N/A return cachePages;
816N/A public int getHitsPerPage() {
816N/A return hitsPerPage;
58N/A public boolean isHistoryCache() {
58N/A return historyCache;
58N/A public int getHistoryCacheTime() {
58N/A return historyCacheTime;
773N/A public boolean isHistoryCacheInDB() {
773N/A return historyCacheInDB;
58N/A return sourceRoot;
58N/A return repositories;
65N/A public boolean isGenerateHtml() {
65N/A return generateHtml;
77N/A return defaultProject;
99N/A public int getIndexWordLimit() {
99N/A return indexWordLimit;
1115N/A public boolean isPrintProgress() {
1115N/A return printProgress;
125N/A public boolean isAllowLeadingWildcard() {
125N/A return allowLeadingWildcard;
106N/A private boolean quickContextScan;
106N/A public boolean isQuickContextScan() {
106N/A return quickContextScan;
112N/A return ignoredNames;
1026N/A return includedNames;
1100N/A return userPageSuffix;
129N/A return bugPattern;
318N/A return reviewPage;
318N/A return reviewPattern;
173N/A public boolean isRemoteScmSupported() {
173N/A return remoteScmSupported;
253N/A public boolean isOptimizeDatabase() {
253N/A return optimizeDatabase;
296N/A public boolean isUsingLuceneLocking() {
296N/A return useLuceneLocking;
335N/A public boolean isCompressXref() {
335N/A return compressXref;
480N/A public boolean isIndexVersionedFilesOnly() {
480N/A return indexVersionedFilesOnly;
833N/A return databaseDriver;
833N/A return databaseUrl;
1016N/A return allowedSymlinks;
640N/A e.writeObject(this);
639N/A public static Configuration makeXMLStringAsConfiguration(String xmlconfig) throws IOException {