It is my
understanding that <sysinfo/> should pull all of your system enviroment
variables into nant for reference. It seems that all of my variables are not
being pulled in.
In particular I want sys.env.SRCROOT to be available.
I have set sys.env.SRCROOT in the following ways. Both of these methods
lead to “sys.env.SRCROOT = <path>” being displayed when
doing a “set” from the Dos box which is being used to call Nant.:
1) By setting it as a system variable through system properties.
2) By adding it with “sys.env.SRCROOT = <value>” in a
Dos box.
I have tried calling “<sysinfo/>” the following ways
which yield the ‘verbose’ results noted below each item. Each one
of these attemts DID NOT set sys.env.SRCROOT…:
1)
<sysinfo verbose=”true”/>
------ OUTPUT START ------
Target(s) specified: usage
[sysinfo] Setting system
information properties under sys.*
[sysinfo] nant.version =
0.84.1455.0
[sysinfo] sys.os = Microsoft
Windows NT 5.1.2600.0
[sysinfo] sys.os.platform =
Win32NT
[sysinfo]
sys.os.folder.commonprogramFiles = C:\Program Files\Common Files
[sysinfo]
sys.os.folder.programfiles = C:\Program Files
[sysinfo]
sys.os.folder.commonapplicationData = C:\Documents and Settings\All
Users\Application Data
[sysinfo] sys.os.version =
5.1.2600.0
[sysinfo] sys.os.folder.temp =
C:\DOCUME~1\tonyd\LOCALS~1\Temp\
[sysinfo] sys.clr.version =
1.1.4322.573
[sysinfo]
sys.os.folder.applicationdata = C:\Documents and Settings\tonyd\Application
Data
[sysinfo]
sys.os.folder.desktopdirectory = C:\Documents and Settings\tonyd\Desktop
[sysinfo] sys.os.folder.system
= C:\WINDOWS\system32
------ OUTPUT END ------
2)
<sysinfo prefix = “” verbose=”true”
------ OUTPUT START ------
Target(s) specified: usage
[sysinfo] Setting system
information properties under *
[sysinfo] nant.version =
0.84.1455.0
[sysinfo]
nant.tasks.test.location =
c:\logicsql\logicsql\buildscripts\nant\build\nant-0.84\bin\nant.core.tests.dll
[sysinfo] nant.tasks.sleep =
True
[sysinfo] nant.tasks.fail =
True
[sysinfo] os = Microsoft
Windows NT 5.1.2600.0
[sysinfo] nant.tasks.regsvcs =
True
[sysinfo]
os.folder.commonapplicationData = C:\Documents and Settings\All
Users\Application Data
[sysinfo]
nant.tasks.attrib.location =
c:\logicsql\logicsql\buildscripts\nant\build\nant-0.84\bin\nant.core.dll
[sysinfo]
nant.tasks.delay-sign.location =
c:\logicsql\logicsql\buildscripts\nant\build\nant-0.84\bin\nant.dotnettasks.dll
[sysinfo] nant.tasks.exec =
True
[sysinfo]
nant.tasks.resgen.location =
c:\logicsql\logicsql\buildscripts\nant\build\nant-0.84\bin\nant.dotnettasks.dll
[sysinfo] nant.tasks.solution
= True
[sysinfo]
nant.settings.defaultframework = net-1.1
[sysinfo] nant.tasks.asminfo.location
=
c:\logicsql\logicsql\buildscripts\nant\build\nant-0.84\bin\nant.dotnettasks.dll
[sysinfo]
nant.tasks.mail.location =
c:\logicsql\logicsql\buildscripts\nant\build\nant-0.84\bin\nant.core.dll
[sysinfo]
nant.tasks.tstamp.location = c:\logicsql\logicsql\buildscripts\nant\build\nant-0.84\bin\nant.core.dll
[sysinfo]
nant.tasks.midl.location =
c:\logicsql\logicsql\buildscripts\nant\build\nant-0.84\bin\nant.visualcpptasks.dll
[sysinfo] nant.tasks.property
= True
[sysinfo] nant.tasks.al = True
[sysinfo] nant.tasks.call =
True
[sysinfo] nant.tasks.sysinfo =
True
[sysinfo] nant.tasks.link =
True
[sysinfo]
nant.tasks.nantschema = True
[sysinfo]
nant.tasks.cvs-checkout = True
[sysinfo]
nant.tasks.readregistry.location = c:\logicsql\logicsql\buildscripts\nant\build\nant-0.84\bin\nant.core.dll
[sysinfo] nant.tasks.copy =
True
[sysinfo] nant.tasks.if = True
[sysinfo]
nant.tasks.xmlpoke.location =
c:\logicsql\logicsql\buildscripts\nant\build\nant-0.84\bin\nant.core.dll
[sysinfo] nant.settings.currentframework.version
= 1.1.4322
[sysinfo]
nant.settings.defaultframework.frameworkdirectory =
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
[sysinfo]
nant.tasks.cl.location =
c:\logicsql\logicsql\buildscripts\nant\build\nant-0.84\bin\nant.visualcpptasks.dll
[sysinfo]
nant.tasks.style.location =
c:\logicsql\logicsql\buildscripts\nant\build\nant-0.84\bin\nant.core.dll
[sysinfo] nant.tasks.nunit2 =
True
[sysinfo] nant.tasks.test =
True
[sysinfo] nant.tasks.nant =
True
[sysinfo] nant.tasks.script =
True
[sysinfo]
nant.tasks.cvs-update.location =
c:\logicsql\logicsql\buildscripts\nant\build\nant-0.84\bin\nant.sourcecontroltasks.dll
[sysinfo]
nant.tasks.nunit.location = c:\logicsql\logicsql\buildscripts\nant\build\nant-0.84\bin\nant.nunit1tasks.dll
[sysinfo]
nant.tasks.nantschema.location =
c:\logicsql\logicsql\buildscripts\nant\build\nant-0.84\bin\nant.core.dll
[sysinfo]
nant.tasks.move.location =
c:\logicsql\logicsql\buildscripts\nant\build\nant-0.84\bin\nant.core.dll
[sysinfo]
nant.tasks.servicecontroller.location =
c:\logicsql\logicsql\buildscripts\nant\build\nant-0.84\bin\nant.win32tasks.dll
[sysinfo] nant.tasks.loadtasks
= True
[sysinfo] nant.tasks.xmlpeek =
True
[sysinfo] nant.tasks.foreach =
True
[sysinfo]
nant.tasks.al.location =
c:\logicsql\logicsql\buildscripts\nant\build\nant-0.84\bin\nant.dotnettasks.dll
[sysinfo]
nant.settings.defaultframework.version = 1.1.4322
[sysinfo] nant.tasks.unzip =
True
[sysinfo]
nant.tasks.delay-sign = True
[sysinfo] nant.tasks.get =
True
[sysinfo] nant.version =
0.84.1455.0
[sysinfo] nant.project.basedir
= C:\LogicSQL\LogicSQL\BuildScripts\ %srcroot%
[sysinfo]
nant.settings.currentframework.description = Microsoft .NET Framework 1.1
[sysinfo] nant.project.default
= usage
[sysinfo]
nant.tasks.elementTest1 = True
[sysinfo]
nant.tasks.copy.location =
c:\logicsql\logicsql\buildscripts\nant\build\nant-0.84\bin\nant.core.dll
[sysinfo]
nant.tasks.mkdir.location = c:\logicsql\logicsql\buildscripts\nant\build\nant-0.84\bin\nant.core.dll
[sysinfo] os.platform =
Win32NT
[sysinfo] nant.tasks.nunit =
True
[sysinfo]
nant.tasks.available.location =
c:\logicsql\logicsql\buildscripts\nant\build\nant-0.84\bin\nant.core.dll
[sysinfo] nant.tasks.attrib =
True
[sysinfo] nant.tasks.vjc =
True
BUILD FAILED
INTERNAL ERROR
System.NullReferenceException: Object
reference not set to an instance of an object.
at
NAnt.Core.Tasks.SysInfoTask.ExecuteTask()
at
NAnt.Core.Task.Execute()
at
NAnt.Core.TaskContainer.ExecuteChildTasks()
at
NAnt.Core.Tasks.IfTask.ExecuteTask()
at
NAnt.Core.Task.Execute()
at
NAnt.Core.Project.InitializeProjectDocument(XmlDocument doc)
at
NAnt.Core.Project.Execute()
at
NAnt.Core.Project.Run()
Please send bug report to
[EMAIL PROTECTED]
------ OUTPUT END ------
It seems like the second method, specifying the prefix
to be blank, may be the correct thing to do… But then an error occurs.
What am I doing wrong? Any help would be GREATLY
appreciated.
Thanks!,
--Tony