Bugs item #3032628, was opened at 2010-07-21 17:04
Message generated for change (Tracker Item Submitted) made by lica-mobilu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=3032628&group_id=31650

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tasks
Group: 0.91-alpha1
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Bogdan P (lica-mobilu)
Assigned to: Nobody/Anonymous (nobody)
Summary: <sysinfo /> on x64 systems

Initial Comment:
On my W7x64 task <sysinfo /> does not work. Looking with reflector the error 
comes from:


public class PropertyDictionary : DictionaryBase
  - private static void ValidatePropertyName(string propertyName, Location 
location)

Output by Nant is:

Property name 'sys.env.CommonProgramFiles(x86)' is invalid.:
NAnt.Core.BuildException: Property name 'sys.env.CommonProgramFiles(x86)' is inv
alid.
   at NAnt.Core.PropertyDictionary.ValidatePropertyName(String propertyName, Loc
ation location)
   at NAnt.Core.PropertyDictionary.OnValidate(Object key, Object value)
   at System.Collections.DictionaryBase.System.Collections.IDictionary.set_Item(
Object key, Object value)
   at NAnt.Core.PropertyDictionary.set_Item(String name, String value)
   at NAnt.Core.Tasks.SysInfoTask.ExecuteTask()
   at NAnt.Core.Task.Execute()
   at NAnt.Core.Project.InitializeProjectDocument(XmlDocument doc)
   at NAnt.Core.Project.Execute()
   at NAnt.Core.Project.Run()

This show that this line of code from method above raises an error:


    if (!Regex.IsMatch(propertyName, @"^[_A-Za-z0-9][_A-Za-z0-9\-.]*$"))
    {
        throw new BuildException(string.Format(CultureInfo.InvariantCulture, 
ResourceUtils.GetString("NA1064"), new object[] { propertyName }), location);
    }

Solution:

Allow ( and ) in property name.

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

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

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to