DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42254>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42254

           Summary: ANT script to precompile jsp file fails
           Product: Tomcat 5
           Version: 5.5.23
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I am using Tomcat 5.5.23, Jdk 1.6 and Ant 1.6.5 to do try to precompile a group 
of jsp files on LINUX box. I put two targets in my build.xml, which I found 
from web and they are supposed to do the same precompiling work. 

1.    <target name="jspc">
       <taskdef classname="org.apache.jasper.JspC" name="jasper2" >
          <classpath refid="tomcat.jsp.classpath"/>
       </taskdef>
       <jasper2 validateXml="false"
                verbose="9"
                failonerror="false"
                uriroot="${jsp.src.dir}"
                webXmlFragment="${web.dir}/WEB-INF/gen_web.xml"
                outputDir="${jsp.generated.src.dir}">
       </jasper2>
   </target>


2.   <target name="pro.jsp.generate">
       <java classname="org.apache.jasper.JspC" fork="yes">
          <classpath refid="tomcat.jsp.classpath"/>
          <arg line=" -d "/>
          <arg value="${jsp.generated.src.dir}"/>
          <arg line="-p"/>
          <arg value="${jsp.package.name}"/>
          <arg line="-webapp"/>
          <arg value="${jsp.src.dir}/"/>
          <arg line="-uriroot"/>
          <arg value="${jsp.src.dir}/"/>
          <arg line="-uribase"/>
          <arg value="${jsp.generated.src.dir}"/>
       </java>
   </target>

For the first one, it always ignores my classpath setting, which is:           
<classpath refid="tomcat.jsp.classpath"/>, but grabs the classpath from my 
command line, and jar files in my $ANT_HOME !?  


For the second one, is there a way I could set some feature as: 
FailOnError="false". Because the current one always stops whenever a error 
occurs. But somehow, I may have multiple jsp files containing the same error 
and I have 1700+ jsp files to be pre-compiled. 


Thanks 

CJ

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to