Charles,

NAnt properties are case-sensitive. Try using "sys.env.PATH".

However, an even better solution would be to use the
environment::get-variable() function

eg. environment::get-variable("PATH")

Hope this helps,

Gert

----- Original Message ----- 
From: "Bassham, Charles" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 20, 2004 4:22 PM
Subject: RE: [Nant-users] SYSINFO task


Tried it with build 1677 (0.85).  I also got the latest binaries and it
still didn't work.  I have attached a simple repro of what I am doing plus
the output.  I have a work-around but it would be nice if I could figure out
what I was doing wrong.

Thanks for any help,
-Charlie

-----Original Message-----
From: Merrill Cornish [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 19, 2004 3:11 PM
To: Bassham,Charles
Cc: [EMAIL PROTECTED]
Subject: RE: [Nant-users] SYSINFO task


Charles,

>>>I will try to figure out why it is not working then.

If you use the default <sysinfo> task without a prefix attribute, then the
environment variables will have a "sys.env." prefix.  For example, the PATH
environment variable would be recorded in the sys.env.PATH property.
(Actually, I'm not sure whether <sysinfo> preserves the default
capitalization of the original environment variable.)

You can use the prefix attribute of the <sysinfo> task to substitute
something else for the default "sys." prefix.

Merrill

This communication (including any attachments) is intended for the use of
the intended recipient(s) only and may contain information that is
confidential, privileged or legally protected. Any unauthorized use or
dissemination of this communication is strictly prohibited. If you have
received this communication in error, please immediately notify the sender
by return e-mail message and delete all copies of the original
communication. Thank you for your cooperation.


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to