ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@bost.de>
Subject Re: reassigning property values?
Date Mon, 30 Oct 2000 09:09:04 GMT
>>>>> "CT" == Charles Tewksbury <tewks@adhesive.com> writes:

 CT> I don't know why but all my build files just seemed to go in the
 CT> toilet when I upgraded to 1.2 (I doubt I was doing them correctly
 CT> to start with but...)  Is anybody else experiencing upgrade
 CT> nightmares?

The only reason I can think of is

<target name="init">
  <property name="foo" value="bar" />
</target>

<target name="main">
  <echo message="${foo}" />
</target>

where you had relied on the property task in target init to be called,
even if it was not on your dependency list. Adding depends="init" to
the main target should fix it. The only change to properties between
1.1 and 1.2 is that <property> is not executed independent of the
target dependencies anymore.

Stefan

Mime
View raw message