ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject depends for JSPs
Date Fri, 19 Oct 2001 09:56:04 GMT

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__ = 

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

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