Examples of storeHistoryCacheInDB()


Examples of org.opensolaris.opengrok.configuration.RuntimeEnvironment.storeHistoryCacheInDB()

    private HistoryGuru() {
        HistoryCache cache = null;
        RuntimeEnvironment env = RuntimeEnvironment.getInstance();
        scanningDepth=env.getScanningDepth();
        if (env.useHistoryCache()) {
            if (env.storeHistoryCacheInDB()) {
                cache = new JDBCHistoryCache();
            } else {
                cache = new FileHistoryCache();
            }
            try {
View Full Code Here

Examples of org.opensolaris.opengrok.configuration.RuntimeEnvironment.storeHistoryCacheInDB()

        cmd.add("--template");
        if (file.isDirectory()) {
            cmd.add(RuntimeEnvironment.isRenamedFilesEnabled() ? DIR_TEMPLATE_RENAMED : DIR_TEMPLATE);
        } else {
            /* JDBC requires complete list of files. */
            cmd.add(env.storeHistoryCacheInDB() ? FILE_TEMPLATE_LIST : FILE_TEMPLATE);
        }
        if (!filename.isEmpty()) {
            cmd.add(filename);
        }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.