maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Anderson <benanderson...@gmail.com>
Subject dynamic property access
Date Fri, 29 Oct 2004 17:03:15 GMT
Hi,
I want to dynamically set which property I access.  Is this possible? 
Obviously the below code won't work, but you get the idea.  I thought
maybe that the <j:expr> tag might help, but it doesn't seem to do
anything.

    <j:set var="color" value="red"/>
    <j:set var="colorKey" value="color"/>
    <ant:echo>
        ${${colorKey}}
    </ant:echo>

Any ideas?

Thanks,
Ben

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message