The <ant> task's "inheritAll" only inherits properties. However, if you
define datatypes, such as FileSet or user-defined types, they are not
inherited in the sub ant project. It doesn't look too difficult to
implement this inheritance.
However, I can see potential problems here, where heavy-weight objects are
copied that are not intended to be copied, or where tasks are copied over
(if they are given an id). What if a separate inner tag, say
<reference sourceid="id" targetid="newid" />
is used to explicitly specify each reference to copy over? This would allow
for the inheritance-like model which the "inheritAll" provides for
properties.
Thanks.
-Matt Albrecht
|