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 35929] - replace property values each time <echo> is executed
Date Tue, 04 Oct 2005 17:22:45 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35929>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35929


luisgois@netvisao.pt changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|WONTFIX                     |




------- Additional Comments From luisgois@netvisao.pt  2005-10-04 19:22 -------
Hi.


Properties are always created by <property> underlying logic and only <property>
should be aware of their immutability (not the tasks that make use of it).
<echo> coding would be cleaner if it stored the "unresolved"  message and not
the resolved one (where properties have been replaced by their values). 

I'm using ant-contrib, and the <echo> in the following snippet only echoes the 
value ${current-rdbms-dir} takes on it's first iteraction, while <subant> always
evaluates the property value ... this seems to violate the documented behaviour
for Ant, don't you think? 



  <target name="default">
    <for param="current-rdbms-dir">
      <dirset dir="${user.dir}/${do}/database" includes="*"/>
      <sequential>
        <echo message="${current-rdbms-dir}"/>
        <subant target="${current-rdbms-dir}"/>
      </sequential>
    </for>
  </target>





(In reply to comment #2)
> Properties are immutable; they can never change once they are set. The behavior
> you describe is the desired and documented behavior.
> 
> http://ant.apache.org/manual/CoreTasks/property.html

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message