DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27116>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27116

Imported target depends not preserved when overridden





------- Additional Comments From [EMAIL PROTECTED]  2004-03-16 23:57 -------
I was originally bothered by this myself to some degree but a little thought 
puts it in perspective.  Think of it in terms of Java methods.  Overridden 
methods don't just behave as the overridden methods on the parent class; if you 
want to either mimic or inherit behavior you have to either

a) do what the overridden method does, or
b) call super.methodname()

In Ant you should be able to accomplish (a) by duplicating the depends 
attribute.  You should be able to accomplish (b) in this manner:

assuming your <import>ed  file contains <project name="parent">...</project>,

<target name="overridden" depends="parent.overridden">...</target>


That's a guess, but it should work.

-Matt

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to