I would like to put a variable set of params into a antcall, but
unfortunately, I got the message 'antcall doesn't support the nested "for"
element.' :-(  I put my code below...

Is there an other way to add a variable set of params into an antcall?

I hope someone can help. Thanks!  


<macrodef name="callDoAll">

        <!-- input of the parameters, comma separated -->
        <attribute name="params"/> <!-- for example 'file=readme1.txt, 
level=all'
-->
        
        <antcall target="doAll">
                <for list="@{params}" param="task" delimiter=","> <!-- ERROR 
HERE: antcall
doesn't support the nested "for" element. -->
                        <sequential>
                                <propertyregex property="name"...  <!-- get the 
left part of
'file=readme1.txt' : file -->
                                <propertyregex property="value"... <!-- get the 
right part of
'file=readme1.txt': readme1.txt -->
                                  <!-- sets the param for the antcall -->
                        </sequential>
                </for>
        </antcall>
        
</macrodef>

-- 
View this message in context: 
http://www.nabble.com/use-variable-params-in-an-antcall-tp25505175p25505175.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to