I tried #2 and <move todir="${dir-path}" failonerror="false"> didn't help, I
still get the same error:
do-jsp-compile:
[echo] Compile JSP in:
C:\tools\jakarta-tomcat-4.1.27\webapps\telluride\WEB-INF\src\WEB-INF
[echo] dir-path:
C:\tools\jakarta-tomcat-4.1.27\webapps\telluride\WEB-INF\src\WEB-INF
BUILD FAILED
file:C:/Source/webgeneral/tomcat-precompile-jsp.xml:81:
C:\tools\jakarta-tomcat-4.1.27\webapps\tellu
ride\WEB-INF\src\WEB-INF\org\apache\jsp not found.
Thanks,
Matt
-----Original Message-----
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 07, 2003 4:37 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: pre compile and deploy - ?
1. I had to add the following on line 16 to get my JSPs to compile:
This line was already in the script? hmm, strange.
2. The move will fail if there are no files.
why dont you set teh "failonerror" attribute on the <move..> command
Filip
----- Original Message -----
From: "Matt Raible" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, October 07, 2003 3:17 PM
Subject: RE: pre compile and deploy - ?
Awesome Filip - #1 is just what I've been looking for. I'm having a couple
of issues getting it working though:
1. I had to add the following on line 16 to get my JSPs to compile:
<fileset dir="${webapp.path}/WEB-INF/lib">
<include name="*.jar"/>
</fileset>
2. A bunch of my JSP pages are at WEB-INF/pages and I get the following
error because of this:
file:C:/Source/webgeneral/tomcat-precompile-jsp.xml:81:
C:\tools\jakarta-tomcat-4.1.27\webapps\tellu
ride\WEB-INF\src\WEB-INF\org\apache\jsp not found.
Here's line 81:
<move todir="${dir-path}">
<fileset dir="${dir-path}/org/apache/jsp">
<include name="*.*"/>
</fileset>
</move>
Is there a way to get around this? There's no files in the WEB-INF
directory.
Thanks,
Matt
-----Original Message-----
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 07, 2003 2:58 PM
To: Tomcat Users List
Subject: Re: pre compile and deploy - ?
two ways:
1. compile it into the tomcat work directory (expanded wars only)
(this option allows you to change JSPs on the fly)
http://cvs.apache.org/~fhanik/precompile.html
2. pre compile it according tomcat docs, see docs
(this option precompiles jsps into servlets, and you have define them in
web.xml)
Filip
----- Original Message -----
From: "Mufaddal Khumri" <[EMAIL PROTECTED]>
To: "Tomcat List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 07, 2003 1:29 AM
Subject: pre compile and deploy - ?
Hi,
I have a web app and am running it under Tomcat 4.1.18. This might be a
very common issue that I am facing. Basically the first time a .jsp
page gets hit .. it gets compiled into a .class file. This happens for
every .jsp file in the webapp. Is there a way that I can tell tomcat to
compile the .jsps in my webapp without anybody having to access the
.jsp page ?
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]