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 9259] New: - property assignment not working within <sequential>
Date Tue, 21 May 2002 05:12:36 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=9259>.
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=9259

property assignment not working within <sequential>

           Summary: property assignment not working within <sequential>
           Product: Ant
           Version: 1.5Beta1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: mikeb@access.com.au


This build file...

  <?xml version="1.0" ?>
  <project name="test" default="seq-test">
    <target name="seq-test">
       <property name="prop" value="val"/>
       <sequential>
          <echo message="prop = ${myprop}"/>
       </sequential>
    </target>
  </project>

... results int "prop = val"  .. all fine and dandy. 

However, if I move the property assingment inside
the sequential block, like so:

  <?xml version="1.0" ?>
  <project name="test" default="seq-test">
    <target name="seq-test">
       <sequential>
	  <property name="prop" value="val"/>
          <echo message="prop = ${myprop}"/>
       </sequential>
    </target>
  </project>

.. the result is "prop = ${myprop}" - ie the assignment
does not hold - although the Ant DEBUG output seems
to indicate that there is an assigment taking place:

   Setting project property: prop -> val

Tested and reproduced on Win2000 + SPARC Solaris 8.

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


Mime
View raw message