tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ben short" <...@benshort.co.uk>
Subject Re: pre-compile
Date Thu, 24 May 2007 20:18:20 GMT
The maven config is easier on the eye ;)

On 5/24/07, Milanez, Marcus <Marcus.Milanez@diebold.com> wrote:
>
> See if it helps you then...
>
> <target name="generate_jsp_java">
>                 <echo>Generating .java files from .jsp files</echo>
>
>             <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>
>                 <fileset dir="${appFolder}/WEB-INF/lib">
>                   <include name="*.jar"/>
>                 </fileset>
>               </classpath>
>             </taskdef>
>
>             <jasper2
>                      validateXml="false"
>                      uriroot="${appFolder}"
>
> webXmlFragment="${appFolder}/WEB-INF/generated_web.xml"
>                      outputDir="${appFolder}/WEB-INF/src"
>             />
>
>         <!--
>                 There must be a commented section <!-- [INSERT FRAGMENT
> HERE] --> in your original web.xml file, just after your last
> servlet-class tag
>          -->
>                 <loadfile property="webXmlFragment"
> srcFile="${appFolder}/WEB-INF/generated_web.xml"/>
>                 <replace file="${appFolder}/WEB-INF/web.xml"
> token="&lt;!-- [INSERT FRAGMENT HERE] --&gt;"
> value="${webXmlFragment}"/>
>                 <delete file="${appFolder}/WEB-INF/generated_web.xml" />
>
>     </target>
>
>         <target name="compile_jsps">
>                 <echo>Compiling JSPs</echo>
>             <mkdir dir="${appFolder}/WEB-INF/classes"/>
>             <mkdir dir="${appFolder}/WEB-INF/lib"/>
>
>             <javac destdir="${appFolder}/WEB-INF/classes"
>                    optimize="on"
>                    debug="on" failonerror="false"
>                    srcdir="${appFolder}/WEB-INF/src"
>                    excludes="**/*.smap">
>               <classpath>
>                 <pathelement location="${appFolder}/WEB-INF/classes"/>
>                 <fileset dir="${appFolder}/WEB-INF/lib">
>                   <include name="*.jar"/>
>                 </fileset>
>                 <fileset dir="${appFolder}/">
>                   <include name="**/*.jsp"/>
>                 </fileset>
>                 <fileset dir="${tomcat.home}/bin">
>                   <include name="*.jar"/>
>                 </fileset>
>                 <fileset dir="${tomcat.home}/lib">
>                                   <include name="*.jar"/>
>                                 </fileset>
>               </classpath>
>               <include name="**" />
>               <exclude name="tags/**" />
>             </javac>
>
>         </target>
>
> -----Mensagem original-----
> De: Rogerio Baldini das Neves [mailto:rogerio.baldini@powerlogic.com.br]
>
> Enviada em: quinta-feira, 24 de maio de 2007 15:43
> Para: 'Tomcat Users List'
> Assunto: RES: pre-compile
>
> I need to do it in maven.
> But send me your solution,
> if I don't be able to solve my problem with maven, I will use yours.
>
> Thank you.
>
>
>
> -----Mensagem original-----
> De: Milanez, Marcus [mailto:Marcus.Milanez@diebold.com]
> Enviada em: quinta-feira, 24 de maio de 2007 15:34
> Para: Tomcat Users List
> Assunto: RES: pre-compile
>
> I know how to do it using ANT. Would you like it?
>
> -----Mensagem original-----
> De: Rogerio Baldini das Neves [mailto:rogerio.baldini@powerlogic.com.br]
>
> Enviada em: quinta-feira, 24 de maio de 2007 15:30
> Para: users@tomcat.apache.org
> Assunto: pre-compile
>
> Hi Guys,
>
>
>
> I'd like to pre-compile my jsps for Tomcat 6 using maven.
>
>
>
> Anybody knows how it is possible ?
>
>
>
> I've tried to compile using jspc-maven-plugin 1.4.6 and 1.4.7-SNAPSHOT.
>
> But in both I've received the message:
>
> org.apache.taglibs.standard.tag.rt.core.ForTokensTag.setItems(Ljava/lang
> /Str
> ing;)V
>
> when accessing some pages.
>
>
>
> Thanks,
>
>
>
> Rogerio Baldini
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
> e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.467 / Virus Database: 269.7.6/815 - Release Date: 22/5/2007
> 15:49
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message