You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Matthew Oatham <ma...@hotmail.com> on 2003/03/21 18:03:40 UTC

jspC

Hi,

I am running the jspc task in a target as follows:

  <jspc srcdir="${src.dir}"
        destdir="${dest.dir}"
        verbose="9">
      <classpath>
        <pathelement location="${jboss.home}\catalina\lib\jasper-compiler.jar" />
        <pathelement location="${jboss.home}\jboss-3.0.3_tomcat-4.0.5\catalina\lib\jasper-runtime.jar" />
        <pathelement location="${jboss.home}\jboss-3.0.3_tomcat-4.0.5\catalina\common\lib\servlet.jar" />
        <pathelement location="${build.dir}" />
        <pathelement location="${j2ee.home}\lib\j2ee.jar" />
      </classpath>
      <include name="**/*.jsp" />  
  </jspc>

Every thing seems to run through OK, takes a while and I end up with the same number of .java files as I had .jsp files but I get the error:

BUILD FAILED
file:C:/Development/ant/testJspc.xml:8: Java returned: 9

What does that mean? Is it a task bug or a tomcat jspc bug? I want to be sure everything works and I don't think the rest of my dev team will be filled with confidence in me when they see the error BUILD FAILED !!!

Thanks.

Matt