使用ANT脚本自动预编译jsp文件
来源:百度文库 编辑:神马文学网 时间:2024/04/27 14:37:27
Using Ant is the preferred way to compile web applications using JSPC. Use the script given below to precompile a webapp:
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.
_xyz
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.
_xyz
使用ANT脚本自动预编译jsp文件
使用ANT脚本自动预编译jsp文件
ant脚本文件build.xml示例-
使用 Ant 自动生成项目构建版本
ant脚本文件build.xml示例- 上善若水 - 新浪BLOG
ANT+Xdoclet自动生成Hibernate配置文件\映射文件(正确)
预编译头文件的问题 - Thinking dynamic - 博客园
预编译头文件 - 北冥工作室 - CSDN博客
可以使用脚本重命名文件夹中的所有文件吗?
可以使用脚本重命名文件夹中的所有文件吗?
毅方协同社区-在查找预编译头指令时遇到意外的文件结尾
Mysql自动备份脚本
零安装的打包ant脚本
Eclipse中使用ANT
ant初步使用
ant使用简介
Ant基本使用
Eclipse中使用ANT
ant使用简介
针对不同网页使用不同代理 — IE自动配置脚本
ANT-build.xml文件详解
用Ant自动测试JUnit(Ant测试自动化--上
在JSP开发中使用jdom解析临时存放数据的XML文件
weblogic下ant 的使用