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