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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? cmssetupworkplaceimportthread.java

?? cms是開(kāi)源的框架
?? JAVA
字號(hào):
/*
 * File   : $Source: /usr/local/cvs/opencms/src/org/opencms/setup/CmsSetupWorkplaceImportThread.java,v $
 * Date   : $Date: 2006/03/27 14:52:51 $
 * Version: $Revision: 1.19 $
 *
 * 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.setup;

import org.opencms.main.CmsLog;
import org.opencms.main.CmsShell;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.PipedOutputStream;
import java.io.PrintStream;

/**
 * Used for the workplace setup in the OpenCms setup wizard.<p>
 *
 * @author  Alexander Kandzior 
 * 
 * @version $Revision: 1.19 $ 
 * 
 * @since 6.0.0 
 */
public class CmsSetupWorkplaceImportThread extends Thread {

    /** Gets the System.err stream so it can be restored. */
    public static PrintStream m_tempErr;

    /** Logging thread. */
    private CmsSetupLoggingThread m_loggingThread;

    /** System.out and System.err are redirected to this stream. */
    private PipedOutputStream m_pipedOut;

    /** The additional shell commands, i.e. the setup bean. */
    private CmsSetupBean m_setupBean;

    /** The cms shell to import the workplace with. */
    private CmsShell m_shell;

    /** Gets the System.out stream so it can be restored. */
    private PrintStream m_tempOut;

    /** Flag to signalize if a workplace import is needed or not. */
    private boolean m_workplaceImportNeeded;

    /** 
     * Constructor.<p>
     * 
     * @param setupBean the initialized setup bean
     */
    public CmsSetupWorkplaceImportThread(CmsSetupBean setupBean) {

        super("OpenCms: Setup workplace import");

        // store setup bean
        m_setupBean = setupBean;
        // init stream and logging thread
        m_pipedOut = new PipedOutputStream();
        m_loggingThread = new CmsSetupLoggingThread(m_pipedOut, m_setupBean.getLogName());
        m_workplaceImportNeeded = !setupBean.getModulesToInstall().isEmpty();
    }

    /**
     * Returns the logging thread.<p>
     * 
     * @return the logging thread
     */
    public CmsSetupLoggingThread getLoggingThread() {

        return m_loggingThread;
    }

    /** 
     * Returns the status of the logging thread.<p>
     * 
     * @return the status of the logging thread 
     */
    public boolean isFinished() {

        return m_loggingThread.isFinished();
    }

    /**
     * Kills this Thread as well as the included logging Thread.<p> 
     */
    public void kill() {

        if (m_shell != null) {
            m_shell.exit();
        }
        if (m_loggingThread != null) {
            m_loggingThread.stopThread();
        }
        m_shell = null;
        m_setupBean = null;
    }

    /**
     * Write somthing to System.out during setup.<p>
     * 
     * @param str the string to write
     */
    public void printToStdOut(String str) {

        m_tempOut.println(str);
    }

    /**
     * @see java.lang.Runnable#run()
     */
    public void run() {

        // save the original out and err stream 
        m_tempOut = System.out;
        m_tempErr = System.err;
        try {
            // redirect the streams 
            System.setOut(new PrintStream(m_pipedOut));
            System.setErr(new PrintStream(m_pipedOut));

            // start the logging thread 
            m_loggingThread.start();

            if (m_workplaceImportNeeded) {
                // create a shell that will start importing the workplace
                m_shell = new CmsShell(
                    m_setupBean.getWebAppRfsPath() + "WEB-INF" + File.separator,
                    m_setupBean.getServletMapping(),
                    m_setupBean.getDefaultWebApplication(),
                    "${user}@${project}>",
                    m_setupBean);
            }

            try {
                try {
                    if (CmsLog.INIT.isInfoEnabled()) {
                        // log welcome message, the full package name is required because
                        // two different Message classes are used
                        CmsLog.INIT.info(org.opencms.main.Messages.get().getBundle().key(
                            org.opencms.main.Messages.INIT_DOT_0));
                        CmsLog.INIT.info(org.opencms.main.Messages.get().getBundle().key(
                            org.opencms.main.Messages.INIT_DOT_0));
                        CmsLog.INIT.info(org.opencms.main.Messages.get().getBundle().key(
                            org.opencms.main.Messages.INIT_DOT_0));
                        CmsLog.INIT.info(org.opencms.setup.Messages.get().getBundle().key(
                            org.opencms.setup.Messages.INIT_WELCOME_SETUP_0));
                        CmsLog.INIT.info(org.opencms.setup.Messages.get().getBundle().key(
                            org.opencms.setup.Messages.INIT_IMPORT_WORKPLACE_START_0));
                        CmsLog.INIT.info(org.opencms.main.Messages.get().getBundle().key(
                            org.opencms.main.Messages.INIT_DOT_0));
                        CmsLog.INIT.info(org.opencms.main.Messages.get().getBundle().key(
                            org.opencms.main.Messages.INIT_DOT_0));
                        for (int i = 0; i < org.opencms.main.Messages.COPYRIGHT_BY_ALKACON.length; i++) {
                            CmsLog.INIT.info(". " + org.opencms.main.Messages.COPYRIGHT_BY_ALKACON[i]);
                        }
                        CmsLog.INIT.info(org.opencms.main.Messages.get().getBundle().key(
                            org.opencms.main.Messages.INIT_DOT_0));
                        CmsLog.INIT.info(org.opencms.main.Messages.get().getBundle().key(
                            org.opencms.main.Messages.INIT_DOT_0));
                        CmsLog.INIT.info(org.opencms.main.Messages.get().getBundle().key(
                            org.opencms.main.Messages.INIT_LINE_0));

                    }
                    if (m_workplaceImportNeeded) {
                        m_shell.start(new FileInputStream(new File(m_setupBean.getWebAppRfsPath()
                            + CmsSetupDb.SETUP_DATA_FOLDER
                            + "cmssetup.txt")));
                    } else {
                        System.out.println(org.opencms.setup.Messages.get().getBundle().key(
                            org.opencms.setup.Messages.INIT_NO_WORKPLACE_IMPORT_NEEDED_0));
                    }
                    if (CmsLog.INIT.isInfoEnabled()) {
                        CmsLog.INIT.info(org.opencms.setup.Messages.get().getBundle().key(
                            org.opencms.setup.Messages.INIT_IMPORT_WORKPLACE_FINISHED_0));
                    }
                } catch (FileNotFoundException e) {
                    e.printStackTrace();
                }
                // stop the logging thread
                kill();
                m_pipedOut.close();
            } catch (Throwable t) {
                // ignore
            }
        } finally {
            // restore to the old streams
            System.setOut(m_tempOut);
            System.setErr(m_tempErr);
        }
    }
}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
五月天精品一区二区三区| 国产精品一区二区三区99| 亚洲日本va在线观看| 国产精品理论在线观看| 国产精品美女一区二区| 国产精品久久久久一区| 中文天堂在线一区| 国产精品乱码久久久久久| 国产精品久久久久aaaa| 亚洲人吸女人奶水| 亚洲精品ww久久久久久p站| 亚洲一区二区三区爽爽爽爽爽| 一区二区三区在线观看国产| 亚洲午夜私人影院| 日韩精品成人一区二区三区| 久久99精品久久久久| 国产成人综合网站| 91麻豆免费在线观看| 日本精品视频一区二区三区| 欧美色精品天天在线观看视频| 555www色欧美视频| 久久这里都是精品| 国产精品国产自产拍高清av| 亚洲男人的天堂在线观看| 亚洲国产三级在线| 免费高清视频精品| 风间由美一区二区三区在线观看 | a美女胸又www黄视频久久| 色狠狠一区二区| 欧美一级在线观看| 欧美极品少妇xxxxⅹ高跟鞋| 依依成人综合视频| 日本成人在线一区| 国产91丝袜在线播放0| 欧美性猛交xxxx乱大交退制版 | 国产女人18毛片水真多成人如厕| 亚洲欧美激情小说另类| 免费高清在线视频一区·| 成人美女在线观看| 欧美久久久一区| 国产性天天综合网| 亚洲国产精品精华液网站| 国产一区啦啦啦在线观看| 91女人视频在线观看| 欧美成人精品1314www| 亚洲视频一区二区在线| 麻豆极品一区二区三区| 一本久道中文字幕精品亚洲嫩| 日韩欧美视频一区| 亚洲视频在线一区| 国产一区二区电影| 欧美日韩在线播放一区| 2021久久国产精品不只是精品| 一区二区三区精密机械公司| 激情综合网激情| 欧美色综合网站| 国产精品―色哟哟| 日产欧产美韩系列久久99| 91丝袜高跟美女视频| 精品黑人一区二区三区久久 | 粉嫩13p一区二区三区| 欧美日韩一区二区三区四区五区 | 久久99久国产精品黄毛片色诱| 色嗨嗨av一区二区三区| 久久久美女毛片| 日韩激情在线观看| 色欧美日韩亚洲| 国产欧美精品一区二区三区四区 | 欧美日韩mp4| 亚洲男人的天堂在线观看| 国产成人夜色高潮福利影视| 91精品国产综合久久小美女| 亚洲影院免费观看| 成人动漫一区二区| 久久综合九色综合欧美98| 亚洲一区二区在线免费看| 99免费精品在线观看| 国产亚洲精品aa| 国内成人精品2018免费看| 7777精品伊人久久久大香线蕉最新版 | 欧美一区二区三区四区五区 | 日本美女一区二区| 欧美日韩国产成人在线免费| 亚洲激情校园春色| 99久久久久久| 中文字幕一区免费在线观看| 国产成人精品亚洲午夜麻豆| 欧美精品一区二区三区高清aⅴ| 日韩影视精彩在线| 欧美精品自拍偷拍| 亚洲成在人线在线播放| 欧美综合亚洲图片综合区| 亚洲色图色小说| 色网综合在线观看| 一区二区三区毛片| 一本色道a无线码一区v| 亚洲女人的天堂| 一本久久综合亚洲鲁鲁五月天| 亚洲女同ⅹxx女同tv| 一本一本大道香蕉久在线精品| 亚洲欧美日本韩国| 色偷偷88欧美精品久久久| 亚洲色图欧美偷拍| 欧洲一区二区三区在线| 亚洲午夜影视影院在线观看| 欧美日韩免费在线视频| 天堂av在线一区| 日韩欧美成人一区| 国产自产高清不卡| 国产欧美日产一区| 91丝袜美腿高跟国产极品老师| 亚洲乱码国产乱码精品精的特点| 日本大香伊一区二区三区| 亚洲精品免费在线观看| 欧美丝袜自拍制服另类| 青青草精品视频| 26uuu成人网一区二区三区| 国产成人a级片| 亚洲婷婷在线视频| 欧美日韩激情一区二区| 麻豆专区一区二区三区四区五区| www日韩大片| 91亚洲国产成人精品一区二三| 亚洲愉拍自拍另类高清精品| 欧美一卡二卡三卡四卡| 国产成人精品亚洲777人妖| 亚洲少妇中出一区| 欧美一区二区三区视频在线 | 精品盗摄一区二区三区| 懂色av一区二区三区免费看| 亚洲精品福利视频网站| 日韩写真欧美这视频| 成人夜色视频网站在线观看| 亚洲精品伦理在线| 日韩一区二区在线播放| 国产91丝袜在线播放九色| 一区二区三区中文在线| 精品少妇一区二区三区视频免付费 | 亚洲成人一二三| 精品理论电影在线| 91麻豆高清视频| 久久se这里有精品| 国产精品电影院| 欧美精品乱人伦久久久久久| 国产精品一区二区三区网站| 亚洲在线观看免费| 久久精品亚洲国产奇米99| 欧美性生活一区| 国产成人日日夜夜| 亚洲动漫第一页| 国产三级一区二区| 在线不卡a资源高清| 成人听书哪个软件好| 日韩黄色片在线观看| 国产精品毛片无遮挡高清| 欧美一区二区三区不卡| 91在线播放网址| 狠狠色丁香婷婷综合| 亚洲午夜在线电影| 国产精品丝袜在线| 欧美电影免费提供在线观看| 色噜噜狠狠色综合欧洲selulu| 国产美女视频91| 日韩黄色小视频| 亚洲精品国产成人久久av盗摄| 久久九九99视频| 91精品久久久久久久99蜜桃| 日本高清不卡aⅴ免费网站| 国产黄人亚洲片| 免费成人深夜小野草| 亚洲免费av观看| 国产欧美日韩在线观看| 日韩三级在线免费观看| 在线免费观看视频一区| av一区二区三区四区| 国产精品亚洲一区二区三区在线| 日韩一区欧美二区| 亚洲国产综合人成综合网站| 欧美—级在线免费片| 26uuu亚洲| 精品国产精品一区二区夜夜嗨| 欧美日韩一区二区在线观看视频 | 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 成人国产在线观看| 国产一区视频网站| 久久99国产精品成人| 天堂成人国产精品一区| 亚洲成av人片在线观看无码| 亚洲人成伊人成综合网小说| 一区精品在线播放| 国产精品卡一卡二| 中文字幕精品一区| 国产午夜精品在线观看| 久久综合给合久久狠狠狠97色69| 日韩久久精品一区| 欧美v亚洲v综合ⅴ国产v| 精品免费视频一区二区| 日韩欧美成人一区二区| 日韩女同互慰一区二区| 欧美一区二区三区四区在线观看|