ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 11418] - In repeated calls to the same target, params will not be passed in.
Date Tue, 05 Aug 2003 11:52:21 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11418>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11418

In repeated calls to the same target, params will not be passed in.

peter.reilly@corvil.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From peter.reilly@corvil.com  2003-08-05 11:52 -------
I see the problem here:
With a smaller test case:
<project name="antcall demo" default="feed.two">
  <property name="animal" value="DEFAULT"/>
  
  <target name="feed">
    <echo>animal ${animal} </echo>
  </target>
  
  <target name="feed.two">
    <antcall target="feed"> <!-- ANT TASK -->
      <param name="animal" value="tiger"/>
    </antcall>
  </target>	
</project>

The probem is that the antcall task object in target "feed.two" is
executed twice. The second time, the init() method does not
get called, and so "reinit()" gets called. This attempts to
set the properties again. This behaviour was probally needed
in per ant 1.6 or even pre ant 1.5 code. In any case it does not
work now and it is not needed. reinit should simply call init().

I have just made the change in CVS (but forgot to associate the
change with this bug report)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message