NAnt Error

Hi,

I am running the following:

TeamCity Build: 1529
NAnt Build: 0.85.2395.0; nightly; 23/07/2006

When I try and execute a very simple target I get the following error:
-


Process output: "C:\BuildAgent\work\External Modules___NAnt.build.patch\NAnt.exe" "-buildfile:C:\BuildAgent\work\External Modules\vss\build.build" "-extension:"C:\BuildAgent\work\External Modules___NAnt.build.patch\JetBrains.BuildServer.NAntLoggers.dll"" -listener:"JetBrains.BuildServer.NAntLoggers.NAntListener" -D:"idea.build.agent.url=http://localhost:9090/RPC2" -D:DotNetFramework1.1_Path=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 "-D:build.working.dir=C:\BuildAgent\work\External Modules" -D:build.number=12 -D:DotNetFramework1.1= -D:user.language=en -D:user.country=GB -D:idea.build.server.buildType.id=bt3 -D:os.version=5.1 -D:user.timezone=Europe/London -D:file.encoding=Cp1252 -D:file.separator=\ -D:DotNetFramework2.0_Path=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 -D:os.arch=x86 -D:DotNetFramework2.0= -D:user.name=BryI "-D:os.name=Windows XP" -D:idea.build.agent.port=9090 -D:DotNetFramework1.0= -D:user.variant= -D:successful.build.number=10 "-D:user.home=C:\Documents and Settings\BryI" -D:idea.build.server.build.id=24 -D:emma.disable.source=true -D:path.separator=; -D:DotNetFramework1.0_Path=C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705 build
NAnt 0.85 (Build 0.85.2395.0; nightly; 23/07/2006)
Copyright (C) 2001-2006
Gerry Shaw http://nant.sourceforge.net

For more information regarding the cause of the build failure, run the build again in debug mode.

Try 'nant -help' for more information

BUILD FAILED Error creating listener of type

'JetBrains.BuildServer.NAntLoggers.NAntListener'. Could not load type JetBrains.BuildServer.NAntLoggers.NAntListener.
-



My buildAgent.properties file has the entry:

system.DotNetFramework2.0

Any ideas?

Thanks,

- Ian

1 comment
Comment actions Permalink

I was getting this same error, so I copied nant and the logger into the ___NAnt.build.patch\ directory and ran that command line. The first problem is the extra quotations around
"-extension:"C:\BuildAgent\work\External Modules___NAnt.build.patch\JetBrains.BuildServer.NAntLoggers.dll""

Cause it to not scan the DLL for listeners. Removing those quotes then lead to this error:
-


Scanning assembly "JetBrains.BuildServer.NAntLoggers" for extensions
.

BUILD FAILED

Failure scanning "C:\TeamCity\buildAgent\work\RosterOne Web___NAnt.build.patch\JetBrains.BuildServer.NAntLoggers.dll" for extensions.
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Stacktrace:

Failure scanning "C:\TeamCity\buildAgent\work\RosterOne Web___NAnt.build.patch\JetBrains.BuildServer.NAntLoggers.dll" for extensions.:
NAnt.Core.BuildException: Failure scanning "C:\TeamCity\buildAgent\work\RosterOne Web___NAnt.build.patch\JetBrains.BuildServer.NAntLoggers.dll" for extensions.
---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.Module.GetTypesInternal(StackCrawlMark& stackMark)
at System.Reflection.Assembly.GetTypes()
at NAnt.Core.TypeFactory.ScanAssembly(Assembly assembly, Task task) in d:\Source\nant-20060428T085626Z\src\NAnt.Core\TypeFactory.cs:line 114
at NAnt.Core.TypeFactory.ScanAssembly(String assemblyFile, Task task) in d:\Source\nant-20060428T085626Z\src\NAnt.Core\TypeFactory.cs:line 95
at NAnt.Core.Tasks.LoadTasksTask.ExecuteTask() in d:\Source\nant-20060428T085626Z\src\NAnt.Core\Tasks\LoadTasks.cs:line 148
--- End of inner exception stack trace ---
at NAnt.Core.Tasks.LoadTasksTask.ExecuteTask() in d:\Source\nant-20060428T085626Z\src\NAnt.Core\Tasks\LoadTasks.cs:line 154
at NAnt.Core.Task.Execute() in d:\Source\nant-20060428T085626Z\src\NAnt.Core\Task.cs:line 171
at NAnt.Core.ConsoleDriver.LoadExtensionAssemblies(StringCollection extensionAssemblies, Project project) in d:\Source\nant-20060428T085626Z\src\NAnt.Core\Co
nsoleDriver.cs:line 404
at NAnt.Core.ConsoleDriver.Main(String[] args) in d:\Source\nant-20060428T085626Z\src\NAnt.Core\ConsoleDriver.cs:line 104


I've tried running against several nightly builds, including the same version of NAnt.Core that JetBrains.BuildServer.NAntLoggers.dll was built against.

Is the NAnt runner working for anyone?

0

Please sign in to leave a comment.