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 24083] - Properties issue
Date Thu, 20 Nov 2003 15:09:37 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=24083>.
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=24083

Properties issue

peter.reilly@corvil.com changed:

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



------- Additional Comments From peter.reilly@corvil.com  2003-11-20 15:09 -------
I think that he is assumming that the second property should
be seen as value="${${ant.project.name}.cvstag}"
winding up with "${lib.cvstag}" or "release1-5".

This is not the way property subs work - use
ant-contrib propertycopy for this feature.

<project basedir="." default="all" name="lib">
  <taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
  <property file="p.props"/>

  <target name="all">
    <property name="cvs.tag.name" value="${ant.project.name}.cvstag"/>
    <propertycopy name="cvs.tag.value.doeswork" from="${cvs.tag.name}"/>
    <property name="cvs.tag.value.works" value="${lib.cvstag}"/>
    <echo message="CVS tag is ===> ${cvs.tag.value.doeswork}"/>
    <echo message="CVS tag is ===> ${cvs.tag.value.works}"/>
  </target>
</project>

Marking as wontfix

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


Mime
View raw message