Hello all,

I need to add elements to an existing path. I have this problem solved,
but it is not nice. I do it this way

<macrodef name="addToMyPath">
    <attribute name="newPath" />
    <sequential>
        <property name="temp" refid="myPath" />
        <path id="myPath">
            <pathelement path="@{newPath}" />
            <pathelement path="${temp}" />
        </path>
    </sequential>
</macrodef>

It works (with slight modifications also when called more times), but it
1) is a horrible hack
2) prints a warning each time about overriding myPath reference

Please, is there a better way to do this? I can't believe that such
powerfull tool as ant lacks such basic feature.

Best regards,

Ondrej Svetlik



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to