From 5f14104703d04bccf5b5a98486380314ce7e9611 Mon Sep 17 00:00:00 2001 From: remm Date: Fri, 4 May 2007 23:57:58 +0000 Subject: [PATCH] - Use the main xml file for tasks. - Submitted by Daniel Santos. git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@535416 13f79535-47bb-0310-9956-ffa450edef68 --- webapps/docs/jasper-howto.xml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/webapps/docs/jasper-howto.xml b/webapps/docs/jasper-howto.xml index 3d2989a71..a159d7f75 100644 --- a/webapps/docs/jasper-howto.xml +++ b/webapps/docs/jasper-howto.xml @@ -194,21 +194,11 @@ download) to precompile a webapp: <project name="Webapp Precompilation" default="all" basedir="."> - <target name="jspc"> + <import file="${tomcat.home}/bin/catalina-tasks.xml"/> + + <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}/lib"> - <include name="*.jar"/> - </fileset> - </classpath> - </taskdef> - - <jasper2 + <jasper validateXml="false" uriroot="${webapp.path}" webXmlFragment="${webapp.path}/WEB-INF/generated_web.xml" -- 2.11.0