You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gaƫtan Robet <gr...@logiway.fr> on 2002/12/30 14:00:36 UTC

jspC

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>