ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
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"/>
            <path id="tmp">
              <pathelement path="${toString:@{topath}}"/>
            <path id="@{topath}"><pathelement
            <path id="tmp"/>

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


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

View raw message