I have been working with NAnt for a while now...a couple of months, and I just discovered a cool new trick. (I say new, but its new to me : )
using the property::get-value() function, I was able to double expand a property.
Here's an example.
<property name="environment" value="test">
<property name="path.test" value="my test path here">
<property name="path.prod" value="my prod path here">
for the final party trick, I came up with:
<property name="path" value="property::get-value('path.' + property::get-value('environment'))"/>
and it will evaluate either the path.test or the path.prod based on the value of the environment property.
Showing posts with label nant automation. Show all posts
Showing posts with label nant automation. Show all posts
Tuesday, June 8, 2010
Subscribe to:
Posts (Atom)