欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費電子書(shū)等14項超值服

開(kāi)通VIP
使用ANT腳本自動(dòng)預編譯jsp文件
使用ANT腳本自動(dòng)預編譯jsp文件

Using Ant is the preferred way to compile web applications using JSPC. Use the script given below to precompile a webapp:

<project name="Webapp Precompilation" default="all" basedir=".">                        <target name="jspc">                        <taskdef classname="org.apache.jasper.JspC" name="jasper2" >                        <classpath id="jspc.classpath">                        <pathelement location="${java.home}/../lib/tools.jar"/>                        <fileset dir="${tomcat.home}/bin">                        <include name="*.jar"/>                        </fileset>                        <fileset dir="${tomcat.home}/server/lib">                        <include name="*.jar"/>                        </fileset>                        <fileset dir="${tomcat.home}/common/lib">                        <include name="*.jar"/>                        </fileset>                        </classpath>                        </taskdef>                        <jasper2                        validateXml="false"                        uriroot="${webapp.path}"                        webXmlFragment="${webapp.path}/WEB-INF/generated_web.xml"                        outputDir="${webapp.path}/WEB-INF/src" />                        </target>                        <target name="compile">                        <mkdir dir="${webapp.path}/WEB-INF/classes"/>                        <mkdir dir="${webapp.path}/WEB-INF/lib"/>                        <javac destdir="${webapp.path}/WEB-INF/classes"                        optimize="off"                        debug="on" failonerror="false"                        srcdir="${webapp.path}/WEB-INF/src"                        excludes="**/*.smap">                        <classpath>                        <pathelement location="${webapp.path}/WEB-INF/classes"/>                        <fileset dir="${webapp.path}/WEB-INF/lib">                        <include name="*.jar"/>                        </fileset>                        <pathelement location="${tomcat.home}/common/classes"/>                        <fileset dir="${tomcat.home}/common/lib">                        <include name="*.jar"/>                        </fileset>                        <pathelement location="${tomcat.home}/shared/classes"/>                        <fileset dir="${tomcat.home}/shared/lib">                        <include name="*.jar"/>                        </fileset>                        <fileset dir="${tomcat.home}/bin">                        <include name="*.jar"/>                        </fileset>                        </classpath>                        <include name="**" />                        <exclude name="tags/**" />                        </javac>                        </target>                        <target name="all" depends="jspc,compile">                        </target>                        </project>                        

 

The following command line can be used to run the script (replacing the tokens with the Tomcat base path and the path to the webapp which should be precompiled):

$ANT_HOME/ant -Dtomcat.home=<$TOMCAT_HOME> -Dwebapp.path=<$WEBAPP_PATH>                        

 

Then, the declarations and mappings for the servlets which were generated during the precompilation must be added to the web application deployment descriptor. Insert the ${webapp.path}/WEB-INF/generated_web.xml at the right place inside the ${webapp.path}/WEB-INF/web.xml file. Restart the web application (using the manager) and test it to verify it is running fine with precompiled servlets. An appropriate token placed in the web application deployment descriptor may also be used to automatically insert the generated servlet declarations and mappings using Ant filtering capabilities. This is actually how all the webapps distributed with Tomcat are automatically compiled as part of the build process.

本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
Ant多項功能配置
Java及Web應用
ant項目打包實(shí)例
ant shell 實(shí)現增量減量部署
ant通用模板
eclipseEE版本中使用ivy管理jar包
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久