Is there any way to use indirection when fetching the value of a property?
I'd like to be able to establish a set of properties to use as data to drive a generic build target implementation. In the example below, the per product data is limited to version, but there are a handful of properties for each product I'd like to define. Then, based on which product is active, fetch the appropriate values to drive the build. I've experimented with different combinations of $,{,} and using the 'dynamic' attribute without any luck. <?xml version="1.0" ?> <project name="test" default="test"> <property name="Product1.version" value="1" /> <property name="Product2.version" value="2" /> <property name="Product3.version" value="3" /> <property name="products" value=" Product1, Product2, Product3" /> <foreach item="String" delim="," trim="Both" property="build.product" in="${products}"> <echo message="${build.product}" /> <echo message="${${build.product}.version}" /> </foreach> </project> ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users