tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Gomez <hgo...@apache.org>
Subject Re: [VOTE] Proposed jspc refactoring
Date Thu, 07 Nov 2002 16:10:17 GMT
Costin Manolache wrote:
> To clarify - I agree jspc has a lot of broken options and
> features. My use case is:
> 
>     <taskdef classname="org.apache.jasper.JspC" name="jasper2" >
>       <classpath>
>         <pathelement location="${java.home}/../lib/tools.jar"/>
>         <fileset dir="${tomcat.home}/server/lib">
>           <include name="*.jar"/>
>         </fileset>
>         <fileset dir="${tomcat.home}/common/lib">
>           <include name="*.jar"/>
>         </fileset>
>         <pathelement location="${build.dir}/classes"/>
>         <path refid="all_other_jars"/>
>       </classpath>
>     </taskdef>
> 
>     <jasper2 verbose="0"
>              package="my.package"
>              compile="true"
>              validateXml="false"
>              uriroot="${webapp.dir}"
>              webXmlFragment="${build.dir}/generated_web.xml"
>               outputDir="${build.dir}/src/my/package" />
> 
>     <loadfile property="generated_web.xml"
>               srcFile="${build.dir}/generated_web.xml"  />
> 
>     <replace file="${jspui.webapp.dir}/WEB-INF/web.xml"
>              token="&lt;!--GENERATED_JSPS--&gt;"
>              value="${generated_web.xml}" />
> 
>    <javac destdir="${build.dir}/classes"
>            optimize="off"
>            debug="on"
>            srcdir="${build.dir}/src" >
>       <classpath refid='...' />
>       <include name="my/package/**" />
>     </javac>

I'm using a similar way with jspc from Tomcat 3.3.2-dev :

	<java classname="org.apache.jasper.JspC">
		<classpath refid="jspc.classpath"/>
		<arg line="
			-d ${build.dir}/src
			-uriroot ${build.dir}/dst
			-webinc ${build.dir}/dst/WEB-INF/jsp.xml
			-webapp ${build.dir}/dst" />
	</java>

     <javac srcdir="${build.dir}/src"
            destdir="${build.dir}/classes"
            debug="${compile.debug}"
            deprecation="${compile.deprecation}"
            optimize="${compile.optimize}"
            excludes="bas*,status*">
            <classpath refid="jsp.compile.classpath"/>
	</javac>

     <mkdir dir="${build.dir}/dst/WEB-INF/lib"/>

	<jar jarfile="${build.dir}/dst/WEB-INF/lib/${wname}-jsps-${jarext}.jar"
		 basedir="${build.dir}/classes"/>





--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message