ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Burke" <mi...@access.com.au>
Subject 1.5.1b - assigning properties within <sequential>
Date Mon, 20 May 2002 23:07:30 GMT

Hi all, can someone tell me whether this is a bug or a feature?
I've searched the list archive and FAQ but haven't found anything.

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.

Any comments?

Thanks 
mike



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


Mime
View raw message