|
Hi All, I’m unsure whether this is a NAnt issue or a
CruiseControl.NET issue. At first I thought it was almost certainly a CC.NET
issue but I’m starting to wonder so I’d be extremely grateful if
you could bear with me. Essentially I’m having a few problems with
getting the right output displayed by CC.NET when running my build. For
example, my current build log looks rather like this (I’ve ditched all
the irrelevant stuff): <cruisecontrol project="SQL Commmand
Line"><modifications /><build date="08/10/2004
10:16:35" buildtime="00:00:06" error="true">NAnt
0.84 (Build 0.84.1455.0; net-1.0.win32; release; 26/12/2003) Copyright (C) 2001-2003 Gerry Shaw http://nant.sourceforge.net <buildresults project="Halibut"> <message
level="Info"><![CDATA[Buildfile:
file:///F:/integration/Halibut/Build/juscruisin.build]]></message> <message
level="Verbose"><![CDATA[Base Directory:
F:\integration\Halibut\Build.]]></message> <message
level="Info"><![CDATA[Target(s) specified:
rebuild]]></message> … … </buildresults></build></cruisecontrol> So it’s telling me that the build failed and that
there was an error, but the error message isn’t present ANYWHERE in the
log file. My build element in ccnet.config looks like this: <build type="nant">
<executable>F:\nant\bin\nant.exe</executable>
<baseDirectory>F:\integration\Halibut\Build</baseDirectory>
<buildArgs>-v -D:integrationRoot=F:\integration
-D:version=1.0.0</buildArgs>
<buildFile>juscruisin.build</buildFile>
<targetList>
<target>rebuild</target>
</targetList>
<buildTimeoutSeconds>300</buildTimeoutSeconds> </build> Now if I run the same build file from the command line I get
full output including the error message, as follows: F:\integration\Halibut\Build>nant -v
-D:integrationRoot=F:\integration -buildfil e:juscruisin.build NAnt 0.84 (Build 0.84.1455.0; net-1.0.win32; release;
26/12/2003) Copyright (C) 2001-2003 Gerry Shaw http://nant.sourceforge.net Buildfile:
file:///F:/integration/Halibut/Build/juscruisin.build Base Directory: F:\integration\Halibut\Build. Target(s) specified: rebuild [property] Read-only property 'integrationRoot' cannot
be overwritten. clean: [echo] Deleting output
directories... … … setup: [copy] Copying 0 files to
F:\integration/Halibut/1.0.0/Build/Debug. BUILD FAILED F:\integration\Halibut\Build\juscruisin.build(91,10): Could not find file
F:\integration\Halibut\1.0.0\Extras\xxxx.lic to copy. : NAnt.Core.BuildException:
F:\integration\Halibut\Build\juscruisin.build(91,10): Could not find file F:\integration\Halibut\1.0.0\Extras\xxxx.lic
to copy. at NAnt.Core.Tasks.CopyTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName,
Boolean forceDependencies) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run() Total time: 0.3 seconds. This is exactly what I want in the build log that I access
via the CC.NET web interface, but it’s just not in there, which is a
problem because it’s not much use knowing a build failed without knowing
why. I’ve trawled through the documentation that comes with both
NAnt and CC.NET distribution but haven’t turned up anything that might
tell me why this is happening, although I’m assuming now that maybe it’s
something to do with the NAnt XmlLogger. However, I don’t really want to
use a different logger. Does anybody have any idea what’s going on here?
Thanks, Bart ====================== Bart Read Software Engineer Red Gate Software Ltd +44 (0) 870 160 0037 ext 31 ====================== |

