What do people think of the following syntax for the <property> task:
<property prefix="win-vc7.">
<property name="cc" value="${vs-net.dir}\VC7\BIN\cl.exe"/>
<property name="lib" value="${vs-net.dir}\VC7\BIN\lib.exe"/>
<property name="link" value="${vs-net.dir}\VC7\BIN\link.exe"/>
</property>
To produce the following properties:
win-vc7.cc
win-vc7.lib
win-vc7.link
The idea is to reduce duplicate values of the build value.
I've been using this locally for a while and find it really useful. Other
options would be to call the prefix namespace and have the '.' separator a
default that could be changed via a separator attribute. Ie,
<property namespace="win-vc7" separator="/">
<property name="cc" value="${vs-net.dir}\VC7\BIN\cl.exe"/>
<property name="lib" value="${vs-net.dir}\VC7\BIN\lib.exe"/>
<property name="link" value="${vs-net.dir}\VC7\BIN\link.exe"/>
</property>
Would produce the following properties:
win-vc7/cc
win-vc7/lib
win-vc7/link
By default the separator would be a '.' character.
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers