亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? opencmstestproperties.java

?? cms是開源的框架
?? JAVA
字號:
/*
 * File   : $Source: /usr/local/cvs/opencms/test/org/opencms/test/OpenCmsTestProperties.java,v $
 * Date   : $Date: 2005/06/23 14:27:27 $
 * Version: $Revision: 1.12 $
 *
 * This library is part of OpenCms -
 * the Open Source Content Mananagement System
 *
 * Copyright (c) 2005 Alkacon Software GmbH (http://www.alkacon.com)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * For further information about Alkacon Software GmbH, please see the
 * company website: http://www.alkacon.com
 *
 * For further information about OpenCms, please see the
 * project website: http://www.opencms.org
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package org.opencms.test;

import org.opencms.util.CmsFileUtil;
import org.opencms.util.CmsPropertyUtils;

import java.io.File;
import java.io.IOException;

import org.apache.commons.collections.ExtendedProperties;

/**
 * Reads and manages the test.properties file.<p>
 * 
 * @author Michael Moossen 
 * 
 * @version $Revision: 1.12 $
 * 
 * @since 6.0.0
 */
public final class OpenCmsTestProperties {

    private static ExtendedProperties m_configuration;

    /**
     * the singleton instance.
     */
    private static OpenCmsTestProperties m_testSingleton;

    /**
     * the path to the test.properties file.
     */
    private String m_basePath;

    /**
     * the database to use. 
     */
    private String m_dbProduct;

    /**
     * the path to the data test folder.
     */
    private String m_testDataPath;

    /**
     * the path to the webapp test folder.
     */
    private String m_testWebappPath;

    /**
     * private default constructor.
     */
    private OpenCmsTestProperties() {

        // noop
    }

    /**
     * @return the singleton instance
     */
    public static OpenCmsTestProperties getInstance() {

        if (m_testSingleton == null) {
            throw new RuntimeException("You have to initialize the test properties.");
        }
        return m_testSingleton;
    }

    /**
     * Reads property file test.properties and fills singleton members.<p>
     * 
     * @param basePath the path where to find the test.properties file
     */
    public static void initialize(String basePath) {

        if (m_testSingleton != null) {
            return;
        }

        String testPropPath;
        m_testSingleton = new OpenCmsTestProperties();

        m_testSingleton.m_basePath = basePath;
        if (!m_testSingleton.m_basePath.endsWith("/")) {
            m_testSingleton.m_basePath += "/";
        }

        try {
            testPropPath = CmsFileUtil.getResourcePathFromClassloader("test.properties");
            if (testPropPath == null) {
                throw new RuntimeException(
                    "Test property file ('test.properties') could not be found by context Classloader.");
            }
            File f = new File(testPropPath);
            if (!f.exists()) {
                throw new RuntimeException(
                    "Test property file ('test.properties') could not be found. Context Classloader suggested location: "
                        + testPropPath);
            }
            m_configuration = CmsPropertyUtils.loadProperties(testPropPath);
        } catch (IOException e) {
            e.printStackTrace(System.out);
            throw new RuntimeException(e);
        }

        m_testSingleton.m_testDataPath = m_configuration.getString("test.data.path");
        m_testSingleton.m_testWebappPath = m_configuration.getString("test.webapp.path");
        m_testSingleton.m_dbProduct = m_configuration.getString("db.product");

    }

    /**
     * @return Returns the path to the test.properties file
     */
    public String getBasePath() {

        return m_basePath;
    }

    /**
     * @return the parsed configuration file ('test.properties')
     */

    public ExtendedProperties getConfiguration() {

        return m_configuration;
    }

    /**
     * 
     * @return a String identifying the db.product property value of the 'test.properties' value.
     */
    public String getDbProduct() {

        return m_dbProduct;
    }

    /**
     * @return the path to the data test directory
     */
    public String getTestDataPath() {

        return m_testDataPath;
    }

    /**
     * @return the path to the webapp test directory
     */
    public String getTestWebappPath() {

        return m_testWebappPath;
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
九九国产精品视频| 欧美丝袜丝交足nylons| 日本久久一区二区三区| 日韩免费成人网| 一区二区三区影院| 国产不卡视频在线播放| 欧美精品粉嫩高潮一区二区| 国产农村妇女毛片精品久久麻豆| 五月天欧美精品| 色老头久久综合| 欧美激情一二三区| 日本美女一区二区| 欧美巨大另类极品videosbest| 亚洲欧美在线视频| 国产精品影视在线观看| 欧美一区永久视频免费观看| 亚洲精品videosex极品| av在线不卡网| 国产欧美日韩中文久久| 久久99精品国产.久久久久久 | 日韩黄色免费电影| 91黄色免费版| 亚洲欧洲制服丝袜| 92精品国产成人观看免费 | 国产一区二区伦理片| 欧美区视频在线观看| 一级特黄大欧美久久久| 在线影视一区二区三区| 中文字幕在线观看不卡视频| 成人综合婷婷国产精品久久 | 看国产成人h片视频| 欧美精品免费视频| 久久99国产精品久久| 欧美日韩一区在线| 日韩中文字幕区一区有砖一区| 欧美亚洲国产怡红院影院| 亚洲色图19p| 欧美性大战久久久久久久蜜臀| 亚洲色图.com| 欧美综合一区二区三区| 午夜精品福利一区二区蜜股av| 欧美无砖专区一中文字| 三级在线观看一区二区| 日韩欧美的一区| 国产麻豆成人传媒免费观看| 亚洲国产精品激情在线观看 | 中文字幕第一区综合| 成人午夜大片免费观看| 亚洲天堂精品在线观看| 欧美日韩国产一级二级| 老司机午夜精品| 久久精品人人做人人综合 | 136国产福利精品导航| 色综合久久中文字幕| 亚洲午夜在线电影| 日韩精品一区二区在线| 国产美女精品一区二区三区| 中文字幕在线不卡一区二区三区| 色吧成人激情小说| 久热成人在线视频| 国产精品久久久久永久免费观看| 99亚偷拍自图区亚洲| 亚洲在线一区二区三区| 精品国产a毛片| 91免费视频网| 免费看精品久久片| 中文字幕日韩av资源站| 欧美老人xxxx18| 国产99精品视频| 午夜精品福利一区二区三区蜜桃| 日韩欧美一级二级三级| 本田岬高潮一区二区三区| 香蕉久久夜色精品国产使用方法| 欧美一级国产精品| 91久久香蕉国产日韩欧美9色| 日av在线不卡| 中文字幕中文字幕一区二区| 欧美一二三区在线观看| 99久久精品99国产精品| 久久精品国产亚洲a| 亚洲另类在线视频| 欧美激情综合网| 日韩无一区二区| 色婷婷激情久久| 国产成人av电影| 日韩精品午夜视频| 亚洲免费观看高清完整| 国产日韩影视精品| 欧美本精品男人aⅴ天堂| 99精品国产视频| 国产精品一区二区免费不卡| 日韩国产高清在线| 亚洲国产日韩精品| 亚洲欧美色一区| 中文字幕视频一区二区三区久| 精品国产欧美一区二区| 欧美日韩激情一区二区三区| 色天天综合久久久久综合片| 国产成人精品免费一区二区| 久久国产精品99久久人人澡| 亚洲成人av中文| 亚洲精品第一国产综合野| 中文字幕欧美日本乱码一线二线| 精品国产不卡一区二区三区| 欧美妇女性影城| 欧美日韩国产另类一区| 日本精品裸体写真集在线观看| 99久久精品国产观看| 成年人国产精品| 不卡的av网站| 成人黄色大片在线观看| 国产成人免费网站| 国产成人午夜99999| 国产精品一级在线| 成人小视频在线| 99久久99久久精品国产片果冻| 成人av网站免费| 色综合久久久久久久| 91福利社在线观看| 在线成人免费视频| 日韩一区二区免费在线电影| 日韩午夜精品视频| 久久久久久99精品| 中文字幕在线不卡国产视频| 国产精品久久久久影院亚瑟| 综合久久久久久| 亚洲午夜精品一区二区三区他趣| 一区二区三区欧美久久| 亚洲第一二三四区| 奇米亚洲午夜久久精品| 国产一区美女在线| 成人免费福利片| 欧美最猛性xxxxx直播| 777欧美精品| 精品国产凹凸成av人导航| 久久精品人人做| 亚洲欧美激情在线| 日韩极品在线观看| 国产成人免费在线| 色视频成人在线观看免| 91精品国产一区二区三区香蕉| 日韩视频在线一区二区| 国产精品久久久久一区二区三区共 | 国产成人av电影在线观看| 成人一区二区三区视频| 91精品福利在线| 久久综合av免费| 国产精品福利av| 青青草原综合久久大伊人精品 | 久久夜色精品国产欧美乱极品| 久久久综合激的五月天| 亚洲免费观看高清完整版在线| 日本大胆欧美人术艺术动态| 国产成人综合自拍| 一本色道久久加勒比精品| 91精品久久久久久久91蜜桃| 国产欧美精品一区二区色综合| 亚洲综合精品久久| 国产一区日韩二区欧美三区| 色老汉av一区二区三区| 2欧美一区二区三区在线观看视频| 国产精品国产三级国产三级人妇| 日韩高清一区在线| 91在线porny国产在线看| 欧美一级二级三级乱码| 亚洲理论在线观看| 国内精品不卡在线| 717成人午夜免费福利电影| 中文字幕一区二区三区精华液| 美腿丝袜亚洲一区| 欧美日韩精品系列| **性色生活片久久毛片| 韩国av一区二区三区四区| 在线观看av不卡| 亚洲欧洲精品天堂一级 | 日韩精品欧美成人高清一区二区| 成人午夜视频在线| 欧美白人最猛性xxxxx69交| 亚洲国产视频网站| 一道本成人在线| 中文av一区二区| 国产综合色视频| 日韩视频在线永久播放| 五月婷婷色综合| 欧美日韩在线播放一区| 日韩一区在线播放| 成人app网站| 国产精品网站导航| 成人av先锋影音| 国产精品蜜臀在线观看| 国产乱码精品一品二品| 精品国产乱码久久久久久1区2区 | 亚洲私人黄色宅男| 成人国产精品免费观看视频| 日韩免费电影一区| 国产一区二区三区综合| 精品免费一区二区三区| 国产在线视频精品一区| 久久久亚洲午夜电影| 国产精品一区免费视频|