I have a fairly complex sequence of Ant scripts, including top level scripts which call lower level scripts. All of them go through a general import phase, which includes doing some taskdefs. Now, I'd like to avoid doing the taskdefs in the lower level scripts if the tasks have already been loaded by a higher level script. What I'd like is:
1) Some way of determining whether or not a task has already been loaded 2) Some way of only executing the taskdef task if step 1 says it hasn't. Note that there's a bootstrapping problem here - I can do step 2 using AntContrib, but that prevents me from applying the same technique to AntContrib itself. Currently I'm passing a property down to say whether or not I've loaded the other taskdefs (explicitly - inheritAll is false on the <ant> tasks I'm calling) and just always loading AntContrib, but that's not entirely satisfactory. Any suggestions, beyond telling Ant to use large amounts of memory when building? (That's a valid option, but I'd rather avoid it...) Jon Clearswift monitors, controls and protects all its messaging traffic in compliance with its corporate email policy using Clearswift products. Find out more about Clearswift, its solutions and services at http://www.clearswift.com This communication is confidential and may contain privileged information intended solely for the named addressee(s). It may not be used or disclosed except for the purpose for which it has been sent. If you are not the intended recipient, you must not copy, distribute or take any action in reliance on it. Unless expressly stated, opinions in this message are those of the individual sender and not of Clearswift. If you have received this communication in error, please notify Clearswift by emailing [EMAIL PROTECTED] quoting the sender and delete the message and any attached documents. Clearswift accepts no liability or responsibility for any onward transmission or use of emails and attachments having left the Clearswift domain. This footnote confirms that this email message has been swept by MIMEsweeper for Content Security threats, including computer viruses. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]