ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albrecht, Matt" <matt.albre...@zilliant.com>
Subject [ant] could/should <ant> task allow passing references?
Date Sat, 27 Oct 2001 19:29:49 GMT
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

Mime
View raw message