ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francis GALIEGUE <...@one2team.com>
Subject Re: use variable params in an antcall
Date Fri, 18 Sep 2009 09:29:51 GMT
On Fri, Sep 18, 2009 at 10:52, EetieD <khn@leanapps.com> wrote:
>
> 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!
>

Use macrodef's <element>, maybe? Untested, but you can try that:

<macrodef name="callDoAll">
    <element name="params" optional="false"/>
    <sequential>
        <antcall target="doAll">
            <params/>
        </antcall>
    </sequential>
</macrodef>

<callDoAll>
    <params>
        <!-- List of parameters here -->
    </params>
</callDoAll>

-- 

Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
fge@one2team.com
40 avenue Raymond Poincaré
75116 Paris

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


Mime
View raw message