ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jamie.Ech...@ubsw.com
Subject depends for JSPs
Date Mon, 22 Oct 2001 15:07:05 GMT
Hi - I know it's a cheap trick to just resend the same post, but it's 
not completely uninteresting and I don't believe I got no replies at 
all! 

Hi,

I would like to compile only out of date JSP files, the problem is, 
unlike java sources, there doesn't seem to a method for determining 
what files depend on others, through include directives. However, I 
notice that the jsp compiler (we use JRun, not sure if it's specific to 
JRun) puts a line like the following in the .java files it generates.

      private static final String[] __dependencies__ = 
{"/iBox/ContributorsMenu.jsp","/jetweb/util/StandardHeader.jsp","/jetweb
/util/StandardFooter.jsp",null};

Therefore by traversing the entire output, it should be possible to 
create a "depends" type task that gets a graph of the dependencies 
between jsps, so it would know which files need to be recompiled, 
either by parsing the java source or by using BCEL or something to 
check the value of that field of the actual class file.

Has anyone done this yet before I try to do it myself, or any hints 
where to start first?

cheers, jamie



Visit our website at http://www.ubswarburg.com

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.


Mime
View raw message