Pete, Using the new expression support that is the nightly builds, and will be in .85, you can do this...
<project> <property name="var" value="val"/> <property name="val.var" value="hi"/> <echo message="${property::get-value(var + '.var')}"/> </project> C:\src\sf.net\nant>bin\nant -f:expand.xml NAnt 0.85 (Build 0.85.1518.0; net-1.0.win32; nightly; 2/27/2004) Copyright (C) 2001-2004 Gerry Shaw http://nant.sourceforge.net Buildfile: file:///expand.xml [echo] hi BUILD SUCCEEDED Total time: 0.1 seconds. But other than that, I don't believe we decided to allow nested expression like this. I remember the discussion, and I think the decision was made to use functions rather than nested expressions. :) Does this work for you? ----- Original Message ----- From: "Peter McEvoy" <[EMAIL PROTECTED]> Subject: [Nant-users] Double expansion of property names? > Hi all, > I am trying to build a library of reusable targets that I can include into > my build files. In order to do this, I'd really like to be able to be able > to evaluate properties like the following: > > ${$nant.project.name}.dist.dir} > > in my reusable target, which would then expand to the value of (say) > > ${myproj.dist.dir} > > I get an error if I try this (which I kinda expected). Is there any way I > could workaround this? > > Pete ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users