ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject MacroDef, Script, MD.Attribute
Date Fri, 17 Oct 2003 11:53:52 GMT
How can I access macrodef attributes from inside a script?

<macrodef>
    <attribute name="foo"/>
    <sequential>
        <script language="javascript"> <![CDATA[

            // how to access the value of 'foo' ??

        ]]></script>
    </sequential>
</macrodef> 


Because <attribute>s are not <property>s, I canĀ“t use
project.getProperty("foo"). And setting a 
    <property name="fooValue" value="${foo}"/>
will work only on first time, because properties are
immutable.


Jan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message