ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: how to call a predefined target or macroin build.xml from Custom Ant task
Date Thu, 03 Sep 2009 05:09:50 GMT

<macrodef name="echo1">
    <attribute name="foo" default="default"/>
        <echo message="@{foo}"/>
<script language="javascript">
    // Create the macro like a normal task
    task = project.createTask("echo1");
    // and execute it
    // setting attributes like normal tasks doesnt work because there is no setter
    // implemented.
    //    task.setFoo("my text");
    // so the macro uses a dynamic way defined in here
    task.setDynamicAttribute("foo", "my text");



>-----Urspr√ľngliche Nachricht-----
>Von: Raja Nagendra Kumar [] 
>Gesendet: Mittwoch, 2. September 2009 20:25
>Betreff: Re: how to call a predefined target or macroin 
>build.xml from Custom Ant task
>I see there is a way to execut target using 
>but don't find a way to execute the macro. Any pointers pl.
>View this message in context: 
>Sent from the Ant - Dev mailing list archive at
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message