On Mon, 10 Dec 2001, Jose Alberto Fernandez <[EMAIL PROTECTED]> wrote:
> From: "Stefan Bodewig" <[EMAIL PROTECTED]> > > Just thinking about the eventual unification of <property> and > <datatypes>, it would be nice if we could use the same "verb" to > refer to both when used as perameters, I'm not sure. Properties and data types still are a bit different in Ant 1.x, especially if we remove the implicit copying for datatypes (which is where I'd like to see the behavior of properties end in Ant2 as well). You can override ids for datatypes just by redeclaring them for example. > Is this the same behavior like for <property>s? No, it is close. The "nested elements always override existing objects" part is identical, the behavior for inheritall="true" is different, but we cannot change it (well, we can completely remove implicit copying for data types) for backwards compatibility reasons. As you know, properties of a parent project will override those in a child, while references have never been copied at all - so people could savely assume that the definition in the child build is the one that wins. > If this is too risky, then I would suggest having <datatype> > inheritance be driven by a different attribute like: > "inheritrefs='true'" which by default is false. But if set to true > will follow exactly the same rules of overriding as for properties. Works for me. Stefan -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
