You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by dh...@lexmark.com on 2001/09/12 20:42:31 UTC

Getting around JspC re-precompiling


Hello,

As I had no replies to my previous post about JspC re-pre-compiling files even
if they haven't changed, I am trying to figure out a way around it...

I basically need to check if each pre-compiled file in my build directory has a
timestamp earlier than it's corresponding jsp.  If so, I want to pre-compile it
again.

How do I do this?!  I realise I can use the uptodate task to check one or more
files against a single file, but how do I loop through all the files in a
directory, get the file name, and check each .jsp file with the corresponding
.java file?  Would it be best to then more each jsp that needs re-pre-compiling
to another directory, and then use the JspC webapp attribute?

Would really appreciate some help!

Many thanks,

Dave




Re: Getting around JspC re-precompiling

Posted by Diane Holt <ho...@yahoo.com>.
I replied. I suggested you look at the <apply> task. That suggestion still
stands.

Diane

--- dhay@lexmark.com wrote:
> 
> 
> Hello,
> 
> As I had no replies to my previous post about JspC re-pre-compiling
> files even
> if they haven't changed, I am trying to figure out a way around it...
> 
> I basically need to check if each pre-compiled file in my build
> directory has a
> timestamp earlier than it's corresponding jsp.  If so, I want to
> pre-compile it
> again.
> 
> How do I do this?!  I realise I can use the uptodate task to check one
> or more
> files against a single file, but how do I loop through all the files in
> a
> directory, get the file name, and check each .jsp file with the
> corresponding
> .java file?  Would it be best to then more each jsp that needs
> re-pre-compiling
> to another directory, and then use the JspC webapp attribute?
> 
> Would really appreciate some help!
> 
> Many thanks,
> 
> Dave
> 
> 
> 


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com