ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Getting around JspC re-precompiling
Date Thu, 13 Sep 2001 07:46:58 GMT
Be careful though that one file is not included in the other. The file 
that has changed timestamps may well be included in many other files, 
but not require compilation itself. I don't see an easy way round this 
short of using clearcase config recs (we use clearcase) so we are going 
to recompile them all whenever one is out of date.

cheers, jamie

PS here is the relevant bit from the build file (the is 
an ugly hack to make the file names relative as our jsp compiler bombs 
out if you pass the full path name):

<target name="jspc">
  Processing JSPs in Web
 <apply executable="/sbcimp/run/pd/perl/prod/bin/perl" parallel="true" 
  <arg line="/home/echlinja/"/>
  <arg value="java"/>
  <arg value="-classpath"/>
  <arg value="JSPC"/>
  <arg value="-v"/>
  <arg value="-d" />
  <arg value="WEB-INF/classes" />
  <fileset dir="${src.dir.root}/JSPC" includes="**/*.jsp" 
excludesfile="${src.dir.root}/JSPC/exclusions.txt" />
  <mapper type="glob" from="*.jsp" to="*.class"/>
  <!-- mapper type="regexp" from="(.*).jsp$$" to="\1.class"/ -->

> -----Original Message-----
> From: holtdl []
> Sent: 12 September 2001 22:34
> To: ant-user
> Cc: holtdl
> Subject: Re: Getting around JspC re-precompiling
> I replied. I suggested you look at the <apply> task. That 
> suggestion still
> stands.
> Diane
> --- 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
> > 
> > 
> > 
> =====
> (
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with 
> Yahoo! Messenger

Visit our website at

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.

View raw message