ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: task that allows augmentation of previously declared references
Date Mon, 29 Mar 2010 05:00:20 GMT
> append/prepend isn't as far a departure from the current 
> model as would be
> allowing complex expressions or arbitrary transformations.

I havent followed the discussion, but read the "append to path" and this
is possible.
You can not append directly to a path, but because paths are - in
contrast to properties - overwritable:

    <macrodef name="addpath">
        <attribute name="topath"/>
        <element name="nested" optional="yes" implicit="true"/>
        <sequential>
            <path id="tmp">
              <pathelement path="${toString:@{topath}}"/>
              <nested/>
            </path>
            <path id="@{topath}"><pathelement
path="${toString:tmp}"/></path>
            <path id="tmp"/>
        </sequential>
    </macrodef>

        <addpath topath="test.classpath">
            <pathelement location="${java.classes}"/>
        </addpath>


Jan

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


Mime
View raw message