Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 45199 invoked by uid 500); 19 Oct 2001 09:56:11 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 45188 invoked from network); 19 Oct 2001 09:56:10 -0000 From: Jamie.Echlin@ubsw.com X-OpenMail-Hops: 1 Date: Fri, 19 Oct 2001 10:56:04 +0100 Message-Id: Subject: depends for JSPs MIME-Version: 1.0 TO: ant-user@jakarta.apache.org Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline ;Creation-Date="Fri, 19 Oct 2001 10:56:04 +0100" Content-Transfer-Encoding: 7bit X-WDR-Disclaimer: Version $Revision: 1.13 $ X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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.