tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gaƫtan Robet <gro...@logiway.fr>
Subject jspC
Date Mon, 30 Dec 2002 13:00:36 GMT
Hello,
I just want to precompile jsp files with duplicate name files.
For example, I have two files named:
/hello.jsp
/test/hello.jsp.
When I use a code like this (using Ant):
=================================================
 <target name="jspCC">
  <mkdir dir="${jsp.java}"/>
  <mkdir dir="${jsp.class}"/>
    <java taskname="jasper"
      classname="org.apache.jasper.JspC"
      fork="true" failonerror="true"
      classpathref="myClasspath">
      <arg value="-v4" />
      <arg value="-dd" />
      <arg value="jsp_java" />
      <arg value="-die" />
      <arg value="-webapp" />
      <arg value="docroot" />
    </java>
    <javac srcdir="jsp_java" destdir="jsp_class" debug="false"
deprecation="false" optimize = "false" includes="**/*.java">
      <classpath refid="myClasspath" />
    </javac>
  </target>
===============================================
then I have a compilation error like this:
===============================================
    [javac] D:\docroot\hello_jsp.java:8: duplicate c
lass: org.apache.jsp.hello_jsp
    [javac] public class hello_jsp extends HttpJspBase {
===============================================
How can I avoid this?


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


Mime
View raw message