Configuration.java revision 1435
58N/A/*
58N/A * CDDL HEADER START
58N/A *
58N/A * The contents of this file are subject to the terms of the
58N/A * Common Development and Distribution License (the "License").
58N/A * You may not use this file except in compliance with the License.
58N/A *
58N/A * See LICENSE.txt included in this distribution for the specific
58N/A * language governing permissions and limitations under the License.
58N/A *
58N/A * When distributing Covered Code, include this CDDL HEADER in each
58N/A * file and include the License file at LICENSE.txt.
58N/A * If applicable, add the following below this CDDL HEADER, with the
58N/A * fields enclosed by brackets "[]" replaced with your own identifying
58N/A * information: Portions Copyright [yyyy] [name of copyright owner]
58N/A *
58N/A * CDDL HEADER END
58N/A */
58N/A
58N/A/*
1291N/A * Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
58N/A */
58N/Apackage org.opensolaris.opengrok.configuration;
58N/A
234N/Aimport java.beans.XMLDecoder;
234N/Aimport java.beans.XMLEncoder;
234N/Aimport java.io.BufferedInputStream;
234N/Aimport java.io.BufferedOutputStream;
1287N/Aimport java.io.BufferedReader;
639N/Aimport java.io.ByteArrayInputStream;
639N/Aimport java.io.ByteArrayOutputStream;
234N/Aimport java.io.File;
234N/Aimport java.io.FileInputStream;
234N/Aimport java.io.FileOutputStream;
1289N/Aimport java.io.FileReader;
234N/Aimport java.io.IOException;
639N/Aimport java.io.InputStream;
639N/Aimport java.io.OutputStream;
58N/Aimport java.util.ArrayList;
1185N/Aimport java.util.Collections;
667N/Aimport java.util.Date;
1185N/Aimport java.util.HashMap;
1016N/Aimport java.util.HashSet;
1291N/Aimport java.util.logging.Logger;
58N/Aimport java.util.List;
1185N/Aimport java.util.Map;
1016N/Aimport java.util.Set;
1185N/A
664N/Aimport org.opensolaris.opengrok.history.RepositoryInfo;
1026N/Aimport org.opensolaris.opengrok.index.Filter;
112N/Aimport org.opensolaris.opengrok.index.IgnoredNames;
1195N/Aimport org.opensolaris.opengrok.util.IOUtils;
58N/A
58N/A/**
77N/A * Placeholder class for all configuration variables. Due to the multithreaded
77N/A * nature of the web application, each thread will use the same instance of the
77N/A * configuration object for each page request. Class and methods should have
77N/A * package scope, but that didn't work with the XMLDecoder/XMLEncoder.
58N/A */
418N/Apublic final class Configuration {
58N/A private String ctags;
773N/A
773N/A /** Should the history log be cached? */
58N/A private boolean historyCache;
773N/A /**
773N/A * The maximum time in milliseconds {@code HistoryCache.get()} can take
773N/A * before its result is cached.
773N/A */
58N/A private int historyCacheTime;
773N/A
773N/A /** Should the history cache be stored in a database? */
773N/A private boolean historyCacheInDB;
773N/A
58N/A private List<Project> projects;
58N/A private String sourceRoot;
58N/A private String dataRoot;
664N/A private List<RepositoryInfo> repositories;
58N/A private String urlPrefix;
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 */
77N/A private Project defaultProject;
99N/A private int indexWordLimit;
99N/A private boolean verbose;
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;
112N/A private IgnoredNames ignoredNames;
1026N/A private Filter includedNames;
129N/A private String userPage;
1100N/A private String userPageSuffix;
129N/A private String bugPage;
129N/A private String bugPattern;
318N/A private String reviewPage;
318N/A private String reviewPattern;
144N/A private String webappLAF;
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;
833N/A private String databaseDriver;
833N/A private String databaseUrl;
1393N/A private String CTagsExtraOptionsFile;
1185N/A private int scanningDepth;
1016N/A private Set<String> allowedSymlinks;
Error!

 

There was an error!

null

java.lang.NullPointerException