ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ondřej Světlík <>
Subject Adding elements to a path
Date Thu, 17 Nov 2005 10:36:56 GMT
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" />
        <property name="temp" refid="myPath" />
        <path id="myPath">
            <pathelement path="@{newPath}" />
            <pathelement path="${temp}" />

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:
For additional commands, e-mail:

View raw message