ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <>
Subject Re: [DISC] passing properties to subbuilds
Date Tue, 12 Jun 2001 23:44:11 GMT
At 12:31 PM 6/12/01 -0400, Glenn McAllister wrote:
>> Conor's approach (as I've understood it):
>> We add a new attribute explicit to <ant> that defaults to true in Ant2
>> but false in Ant1 - if this one has been set to true, only those
>> properties that are set via nested <param> elements will be passed to
>> the sub build.
>> All properties that get passed to the sub build override the properties
>> with the same name in the sub build.

+1 on this approach as it seems to make the most sense to me. Simplest
approach that still provides functionality (and simple to implement to boot).

>And if the value is false, everything from the parent gets passed through
>overriding the sub build values (reflecting the current behaviour)?  I'm
>cool with this approach; I'm much happier being explicit rather than
>However, this is going to hose compatibility between Ant1 and Ant2.
>Everyone is currently assuming when they call the sub build, the parent
>values take precidence.  With Ant2, *none* of the parent properties are
>going to be passed by default; any sub build that depends on getting a
>value from the parent will now break.

We can still use XSLT to *fix* this when we create an Ant1 to Ant2 XSLT
sheet ;)



| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |

View raw message