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

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

?? assemblemojo.java.svn-base

?? portal越來越流行了
?? SVN-BASE
字號:
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements.  See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License.  You may obtain a copy of the License at * *      http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package org.apache.pluto.maven;import java.io.File;import java.util.ArrayList;import java.util.Iterator;import java.util.List;import org.apache.maven.plugin.MojoExecutionException;import org.apache.maven.plugin.logging.Log;import org.apache.pluto.util.UtilityException;import org.apache.pluto.util.assemble.Assembler;import org.apache.pluto.util.assemble.AssemblerConfig;import org.apache.pluto.util.assemble.AssemblerFactory;/** * The AssembleMojo is responsible for assembling a web application for deployment * into the Pluto portlet container.  Assembly, in this context, is the process of * updating a web application's WEB-INF/web.xml with Pluto specific parameters for  * deployment in Pluto.    * <p> * This Mojo is able to operate on individual descriptors by specifying  * <code>portletXml</code>, <code>webXml</code>, and <code>webXmlDestination</code>. * If your project uses standard Maven 2 directory layouts, the defaults will * provide proper values. * <p/> * Example Maven 2 <code>pom.xml</code> usage: * <pre> * &lt;project&gt; *   ... *   &lt;build&gt; *      &lt;plugins&gt; *          &lt;plugin&gt; *              &lt;groupId&gt;org.apache.pluto&lt;/groupId&gt; *              &lt;artifactId&gt;maven-pluto-plugin&lt;/artifactId&gt; *          &lt;/plugin&gt; *      &lt;/plugins&gt; *   &lt;/build&gt; *   ... * &lt;/project&gt; * </pre> * <p> * This Mojo can also operate on entire WAR or EAR archive files by specifying * a list of archive path names in <code>archives</code>. * <p/> * Example Maven 2 <code>pom.xml</code> usage: * <pre> * &lt;project&gt; *   ... *   &lt;build&gt; *      &lt;plugins&gt; *          &lt;plugin&gt; *              &lt;groupId&gt;org.apache.pluto&lt;/groupId&gt; *              &lt;artifactId&gt;maven-pluto-plugin&lt;/artifactId&gt; *              &lt;executions&gt; *                  &lt;execution&gt; *                      &lt;phase&gt;package&lt;/phase&gt; *                      &lt;goals&gt; *                          &lt;goal&gt;assemble&lt;/goal&gt; *                      &lt;/goals&gt; *                      &lt;configuration&gt; *                          &lt;assemblyOutputDirectory&gt;${project.build.directory}/assembled-wars&lt;/assemblyOutputDirectory&gt; *                          &lt;archives&gt; *                              &lt;assembleArchive&gt; *                                  ${project.build.directory}/wartoassemble.war *                              &lt;/assembleArchive&gt; *                              &lt;assembleArchive&gt; *                                  ${project.build.directory}/anotherwartoassemble.war *                              &lt;/assembleArchive&gt; *                          &lt;/archives&gt; *                      &lt;/configuration&gt; *                  &lt;/execution&gt; *              &lt;/executions&gt; *          &lt;/plugin&gt; *      &lt;/plugins&gt; *   &lt;/build&gt; *   ... * &lt;/project&gt; * </pre> *  * @since Jul 30, 2005 * @see org.apache.pluto.util.assemble.Assembler  *  * @goal assemble * @description prepares a web application as a portlet application * @phase process-resources */public class AssembleMojo extends AbstractPortletMojo {	// Private Member Variables ------------------------------------------------    /**     * The portlet application descriptor (<code>WEB-INF/portlet.xml</code>).     * @parameter expression="${basedir}/src/main/webapp/WEB-INF/portlet.xml"     * @required     */    private File portletXml;    /**     * The original webapp descriptor (<code>WEB-INF/web.xml</code>).     * @parameter expression="${basedir}/src/main/webapp/WEB-INF/web.xml"     * @required     */    private File webXml;    /**     * The file to which the updated webapp descriptor is written.     * @parameter expression="${project.build.directory}/pluto-resources/web.xml"     */    private File webXmlDestination;    /**     * The name of the dispatch servlet class to use     * @parameter     */    private String dispatchServletClass;        /**     * A list of archive files to assemble.  Only EAR and WAR file     * types are supported.       * <p/>     * Each value in the list is the absolute pathname to the      * archive being assembled.     * <p/>     * This parameter is mutually exclusive with portletXml, webXml,      * and webXmlDestination parameters.       *      * @parameter alias="warFiles"     */    private List archives;    /**     * @deprecated see archives parameter     * @parameter     */    private List warFiles;        /**     * Destination directory the assembled files are written out to.     * @parameter alias="warFilesDestination" expression="${project.build.directory}/pluto-assembled-wars"     */    private File assemblyOutputDirectory;        /**     * Destination directory the assembled files are written out to.     * @parameter     * @deprecated see assemblyOutputDirectory parameter     */    private File warFilesDestination;    // AbstractPlutoMojo Impl --------------------------------------------------    protected void doExecute() throws MojoExecutionException {                       // Log parameter values.    	Log log = getLog();        if (log.isInfoEnabled()) {            if (archives == null || archives.isEmpty()) {                log.info("Reading web.xml from :" + webXml.getAbsolutePath());                log.info("Reading portlet.xml from: " + portletXml.getAbsolutePath());                log.info("Writing web.xml to: " + webXmlDestination.getAbsolutePath());            }                       }                try {            // Assemble portlet app by updating web.xml.            if (archives == null || archives.isEmpty()) {                        AssemblerConfig config = createAssemblerConfig();                Assembler assembler = AssemblerFactory.getFactory()            		    .createAssembler(config);                assembler.assemble(config);            } else {                for (Iterator i = archives.iterator(); i.hasNext();) {                    File archive = new File(i.next().toString());                    if (log.isInfoEnabled()) {                        log.info("Assembling archive file " + archive.getAbsolutePath() +                                 " to directory " + assemblyOutputDirectory.getAbsolutePath());                    }                                    AssemblerConfig config = createArchiveAssemblerConfig(archive, assemblyOutputDirectory);                    Assembler assembler = AssemblerFactory.getFactory()                        .createAssembler(config);                    assembler.assemble(config);                }            }        } catch (UtilityException e) {            log.error("Assembly failed: " + e.getMessage(), e);        }    }    protected void doValidate() throws MojoExecutionException {        Log log = getLog();                // Support for the old 'warFiles' mojo parameter.  Apparently        // the alias for the 'archives' parameter doesn't work properly.        if (! (warFiles == null || warFiles.isEmpty()) ) {            log.warn( "'warFiles' parameter is deprecated.  Use 'archives' parameter instead." );            if ( archives == null ) {                archives = new ArrayList();            }            archives.addAll( warFiles );        }                // Warn if the old 'warFilesDestination' mojo parameter is used        if ( warFilesDestination != null ) {            log.warn( "'warFilesDestination' parameter is deprecated.  Use 'assemblyOutputDirectory' instead." );            assemblyOutputDirectory = warFilesDestination;        }                // If a list of war files are supplied:        //   1) webXml, portletXml, and webXmlDestination parameters are ignored        //   2) verify the files in the List exist.        //   3) verify the destination is a directory, or create it if it doesn't exist.                // A list of files was supplied so we ignore other parameters.         if (archives != null && !archives.isEmpty()) {            if (webXml != null) {                log.debug("archives parameter and webXml parameter are mutually exclusive.  Ignoring webXml parameter.");            }            if (portletXml != null) {                log.debug("archives parameter and portletXml parameter are mutually exclusive.  Ignoring portletXml parameter.");            }            if (webXmlDestination != null) {                log.debug("archives parameter and webXmlDestination parameter are mutually exclusive.  Ignoring webXmlDestination parameter.");            }                        // verify each file can be found            for (Iterator i = archives.iterator(); i.hasNext();) {                File f = new File(i.next().toString());                if (!f.exists()) {                    log.warn("File " + f.getAbsolutePath() + " does not exist.");                    i.remove();                    continue;                }                if (!f.canRead()) {                    log.warn("File " + f.getAbsolutePath() + " exists but cannot be read.");                    i.remove();                    continue;                }            }                        // check to see if the warFiles list is now empty            if (archives.isEmpty()) {                throw new MojoExecutionException("No war files could be installed due errors.");            }                         // check to see if the dest dir exists or create it.            if (!assemblyOutputDirectory.exists()) {                if (log.isDebugEnabled()) {                    log.debug("Creating destination directory for assembled war files: " + assemblyOutputDirectory.getAbsolutePath());                }                try {                                        if(!assemblyOutputDirectory.mkdirs()) {                        throw new MojoExecutionException("Unable to create destination directory for assembled war files: " +                                 assemblyOutputDirectory.getAbsolutePath());                    }                                        } catch (SecurityException e) {                    throw new MojoExecutionException("Unable to create destination directory for assembled war files: " + e.getMessage(), e);                }            } else {                if (!assemblyOutputDirectory.isDirectory()) {                    throw new MojoExecutionException("Specified destination for assembled war files " +                            assemblyOutputDirectory.getAbsolutePath() + " is not a directory!");                }                if (!assemblyOutputDirectory.canRead()||!assemblyOutputDirectory.canWrite()) {                    throw new MojoExecutionException("Unable to read or write to destination directory for assembed war files.  " +                            "Check permissions on the directory " + assemblyOutputDirectory.getAbsolutePath());                }            }                    // A list of archive files was not provided, so use the other parameters instead.                    } else {                        if (webXml == null || !webXml.exists()) {                throw new MojoExecutionException("Web application descriptor must be a valid web.xml");            }            if (portletXml == null || !portletXml.exists()) {                throw new MojoExecutionException("Portlet descriptor must be a valid portlet.xml");            }        }    }    // Private Methods ---------------------------------------------------------    private AssemblerConfig createAssemblerConfig() {        AssemblerConfig config = new AssemblerConfig();        config.setPortletDescriptor(portletXml);        config.setWebappDescriptor(webXml);        config.setDestination(webXmlDestination);        config.setDispatchServletClass(dispatchServletClass);        return config;    }        private AssemblerConfig createArchiveAssemblerConfig(File archiveToAssemble, File destinationDirectory) {        AssemblerConfig config = new AssemblerConfig();        config.setDispatchServletClass(dispatchServletClass);        config.setSource(archiveToAssemble);        config.setDestination(destinationDirectory);        return config;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美sm美女调教| 久久精品视频免费观看| 欧美日韩国产免费一区二区| 国内偷窥港台综合视频在线播放| 亚洲一区影音先锋| 亚洲欧美国产毛片在线| 久久精品99国产精品| 丰满白嫩尤物一区二区| 日本一区中文字幕| 欧美视频三区在线播放| 亚洲精品一区二区三区香蕉| 国产福利一区二区三区视频| 美女国产一区二区三区| 另类中文字幕网| 捆绑变态av一区二区三区 | 亚洲永久免费视频| 亚洲欧美偷拍三级| 亚洲国产日韩综合久久精品| 亚洲电影欧美电影有声小说| 日韩高清电影一区| 国产在线精品视频| 91碰在线视频| 欧美日韩一级片网站| 91精品午夜视频| 久久麻豆一区二区| 成人欧美一区二区三区黑人麻豆| 亚洲激情自拍视频| 91麻豆免费看片| 欧美卡1卡2卡| 国产一区二区三区日韩| 成人sese在线| 欧美日韩精品欧美日韩精品一综合| 欧美嫩在线观看| 久久久久久久久岛国免费| 国产精品国产三级国产aⅴ中文| 亚洲美女一区二区三区| 日本va欧美va瓶| 成人午夜视频在线观看| 亚洲精品美腿丝袜| 在线不卡的av| 免费人成在线不卡| 国产精品久久综合| 大美女一区二区三区| 久久99精品一区二区三区三区| 成人网在线免费视频| 欧美视频日韩视频| 久久久国产精品不卡| 亚洲一区二区三区四区中文字幕| 国模套图日韩精品一区二区| av色综合久久天堂av综合| 欧美二区三区91| 黄色资源网久久资源365| 91国产丝袜在线播放| 国产精品中文字幕欧美| 欧美日本一区二区三区四区 | 国产精品区一区二区三区| 亚洲成人精品在线观看| 丁香桃色午夜亚洲一区二区三区| 91精品国产综合久久婷婷香蕉| 亚洲一区在线观看免费| 亚洲欧美日韩国产综合在线| 韩国女主播一区| 日韩黄色一级片| 在线精品视频免费观看| 欧美国产一区视频在线观看| 激情五月婷婷综合网| 9191久久久久久久久久久| 亚洲精品老司机| 91在线国产观看| 久久久99精品免费观看不卡| 91精品国产综合久久久久久久久久 | 久久er精品视频| 欧美久久久影院| 91成人免费在线视频| 国产精品国产三级国产三级人妇 | 亚洲永久精品大片| 欧美国产1区2区| 亚洲高清三级视频| 国产精品入口麻豆原神| 国产一区二区三区香蕉| 欧美一级国产精品| 青青草国产成人99久久| 正在播放亚洲一区| 免费成人深夜小野草| 日韩欧美国产系列| 精品一区二区国语对白| 久久精品在这里| 成人午夜激情片| 亚洲欧美综合另类在线卡通| 91丝袜美女网| 亚洲午夜国产一区99re久久| 亚洲成人av中文| 奇米综合一区二区三区精品视频| 91色|porny| 国产农村妇女毛片精品久久麻豆| 欧美电影在线免费观看| 日日夜夜精品视频免费| 欧美大黄免费观看| 国产精品18久久久久久vr| 国产精品久久久久影院色老大| 色综合天天综合网国产成人综合天| 欧美一区二区福利视频| 国产一区二区三区免费在线观看| 国产午夜亚洲精品理论片色戒| 成人深夜视频在线观看| 亚洲综合视频网| 日韩亚洲欧美在线| 国产精品一线二线三线精华| 亚洲色图第一区| 欧美一级黄色片| hitomi一区二区三区精品| 亚洲成人www| 国产精品欧美一区二区三区| 欧美色老头old∨ideo| 麻豆视频观看网址久久| 色婷婷综合五月| 国产日韩精品一区二区浪潮av| 日本一区二区成人| 色偷偷成人一区二区三区91| 日韩国产欧美三级| 日本一区免费视频| 欧美理论电影在线| 豆国产96在线|亚洲| 三级欧美韩日大片在线看| 国产日产欧美精品一区二区三区| 欧美日韩大陆在线| 亚洲人成在线观看一区二区| 日韩欧美色综合网站| 在线观看一区不卡| 国产大陆a不卡| 精品久久久久久最新网址| 成人国产精品免费网站| 蜜桃av一区二区三区电影| 亚洲精品免费看| 国产喷白浆一区二区三区| 7777女厕盗摄久久久| 色呦呦一区二区三区| 国产超碰在线一区| 欧美精品亚洲二区| 色94色欧美sute亚洲线路二| 成人黄色在线看| 韩国av一区二区三区在线观看| 午夜免费欧美电影| 一区二区三区精密机械公司| 国产精品久久久久久久久免费桃花| 蜜桃av噜噜一区| 日韩激情视频网站| 亚洲大片免费看| 一区二区三区国产精华| 91久久奴性调教| 一本到高清视频免费精品| 成人av影视在线观看| 国产白丝网站精品污在线入口| 久久99精品久久久久久动态图| 亚洲成人精品一区二区| 亚洲免费看黄网站| 亚洲综合色丁香婷婷六月图片| www.在线成人| 国产一区中文字幕| 五月天中文字幕一区二区| 午夜av区久久| 成人精品视频网站| 欧美日韩精品二区第二页| 在线成人午夜影院| 亚洲精品久久久蜜桃| 色综合久久88色综合天天6| av在线播放一区二区三区| 午夜成人免费视频| 欧美色精品在线视频| 欧美亚日韩国产aⅴ精品中极品| 91视频com| 欧美日本一区二区三区四区| 日韩三级在线免费观看| 精品国产精品一区二区夜夜嗨| 精品电影一区二区| 国产精品素人视频| 一区二区三区在线观看视频| 亚洲午夜在线观看视频在线| 一级中文字幕一区二区| 偷偷要91色婷婷| 国产一区二区免费看| 成人综合在线网站| 欧美综合久久久| 精品捆绑美女sm三区| 亚洲欧美影音先锋| 午夜欧美电影在线观看| 国产精品99久| 在线观看免费一区| 精品国产一二三| 一区二区三区产品免费精品久久75| 日韩国产精品91| 成人激情免费网站| 欧美一区欧美二区| 一区在线观看免费| 美女久久久精品| 欧美中文字幕不卡| 久久综合久久综合久久| 亚洲一区二区中文在线| 国产一区二区视频在线播放| 亚洲午夜精品网|