Sorry, I thought the below section of code out of the sysinfo task would
spit out the properties that are set. I am actually not interested in the
path variable. I was just using it as a test. Thanks again for the help.
// display the properties
if (Verbose) {
foreach (DictionaryEntry entry in Properties) {
string name = (string) entry.Key;
if (name.StartsWith(Prefix) && !name.StartsWith(Prefix +
"env.")) {
Log(Level.Info, name + " = " +
entry.Value.ToString());
}
}
}
-----Original Message-----
From: Merrill Cornish [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 11:30 AM
To: Bassham,Charles; [EMAIL PROTECTED]
Subject: RE: [Nant-users] SYSINFO task
Charles,
>>> in the verbose setting for the sysinfo task. It doesn't display the
>>> environment variable properties that were set.
Actually, the verbose attribute has nothing to be with the information
_collected_ by sysinfo or the environment variables. All NAnt tasks have a
verbose attribute that applies to their internal processing steps, if any.
For example, in a <copy> task, you get specifics about the source and
destination pathnames which are normally not printed.
Since sysinfo hasn't really got any internal processing steps, its verbose
attribute doesn't do much. In particular, the verbose attribute isn't
_supposed_ to print out environment variables. (If you read the <sysinfo>
help, you will see that it can also provide a lot of other information about
the system too.)
The sole problem seems to be in the capitalization of the environment
variable names. Everyone seem to remember that that path environment
variable is "PATH", but at least on my Windows XP Pro, it's "Path".
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