Hello
I am using sysinfo
task to get the values of environment variables (so I can find things like where
I have installed python on the build machine for example).
I use
<sysinfo verbose="true" prefix="sys." failonerror="false"/>
Now properties
"sys.env.xxxxxxx" are created with all my environment variables' values in
(great). I can look at sys.env.PYTHON_HOME to find out where python is
installed.
I can however forsee me running into problems when I
move my script from machine to machine. Some machines may have environment
variables called PYTHON_HOME some have python_home. Windows/DOS doesn't
care about the case of the environment variables but NAnt (quite correctly)
cares about the case of property names!
What do people think
about putting a boolean property on this task that if set, populated the
sys.env.xxxxxxx properties are named with all UPPER case names (or all lower
case names - it doesn't matter as long as the names are all one
case). The default behaviour can remain the same - i.e. the property names
take the Case Sensitive names of the environment variables.
Just an idea.
Chris.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System
- after being sent from Granta Design Ltd
______________________________________________________________________