Bugs item #1082225, was opened at 2004-12-09 16:58
Message generated for change (Comment added) made by drieseng
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1082225&group_id=31650

Category: Tasks
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Gert Kello (gkello)
Assigned to: Nobody/Anonymous (nobody)
Summary: sysinfo task fails if enviroment variable has "bad" name

Initial Comment:
if there is a enviroment variable which name is not
valid nant property name ("set som;e=something", for
example), the task will fail.

xxx.build file:

<?xml version="1.0" ?>
<project name="Enviroment fail">
  <sysinfo />
</project>

and the command script to reproduce:

set som;e=something
nant.exe


attached zipped example

----------------------------------------------------------------------

>Comment By: Gert Driesen (drieseng)
Date: 2004-12-09 17:50

Message:
Logged In: YES 
user_id=707851

Gert (nice name, btw ;-)),

Now I remember: we can't create a property for a 
environment variable if the name of that environment variable 
is not a valid property name.

What we do is: if failonerror is "false", we just skip that 
environment variable, and continue with the next environment 
variable.

I would suggest using the environment::get-variable() 
function instead for retrieving the value of a environment 
variable.

I don't think its a good idea to just skip environment variables 
(with "bad" names) if failonerror is "true".

What do you think ?


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1082225&group_id=31650


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to