On Tue, 19 Jun 2001 16:47, Stefan Bodewig wrote:
> Peter,
>
> I've proposed something like your patch back in December 2000 - see
> <http://marc.theaimsgroup.com/?t=97669669300001&w=2&r=1>.
>
> Most people didn't have problems to expand properties for target's
> attributes at parser time (that is, only properties that have been
> defined at the same level as targets and be placed before this target
> would be expanded) - and this is what your patch does. But this may
> not be what people expect. Given
>
> <target name="set">
> <property name="dep" value=", foo">
> </target>
>
> <target name="bar" depends="set ${dep}">
Wan't the recomended way of doing this something like
<target name="bar" depends="dep1,dep2,dep3,dep4"/>
<target name="dep1" depends="set" if="do.dep1"/>
<target name="dep2" depends="set" if="do.dep2"/>
<target name="dep3" depends="set" if="do.dep3"/>
<target name="dep4" depends="set" if="do.dep4"/>
<target name="set">
<property name="do.dep${depend}" value="true">
</target>
Cheers,
Pete
*-----------------------------------------------------*
| "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 |
*-----------------------------------------------------*