You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/05/21 07:12:36 UTC
DO NOT REPLY [Bug 9259] New: -
property assignment not working within
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>