Please make sure that NAnt is executed using the XmlLogger (use the argument: -logger:NAnt.Core.XmlLogger).

53 views
Skip to first unread message

jokiz

unread,
Oct 12, 2006, 5:56:12 AM10/12/06
to ccnet-user
hi guys,

i am a little confused. Our Nant Build and Timing logs from dashboard
contains this error message (Please make sure that NAnt is executed
using the XmlLogger (use the argument: -logger:NAnt.Core.XmlLogger).)
and i have read from the documentation that when a nant task was
invoked by ccnet, it already uses such logger. any ideas?

<tasks>
<nant>
<executable>tools\nant\nant.exe</executable>
<baseDirectory>c:\dev\elcs</baseDirectory>
<buildFile>elcs.build</buildFile>
<buildArgs>-D:publish.dir=c:\dev\bin\elcs</buildArgs>
<targetList>
<target>full</target>
</targetList>
<buildTimeoutSeconds>1800</buildTimeoutSeconds>
</nant>
</tasks>

i'm using CCNET 1.0 by the way, no time to upgrade yet. Thanks!

Moshe Hajaj

unread,
Oct 12, 2006, 6:17:22 AM10/12/06
to ccnet-user
verify that you use the Xml Log Publisher: <xmllogger /> in the
publishers block.

jokiz

unread,
Oct 15, 2006, 11:52:42 PM10/15/06
to ccnet-user
i have it,

<publishers>
<merge>
<files>
<file>c:\dev\elcs\build\test-reports\*.xml</file>
</files>
</merge>
<xmllogger />
</publishers>

from what i understand, NAnt produces it's own log file (an *.log
file), i can't find any switch for it to generate its xml logs so i can
output it to my test-reports folder to be merged with the ccnet logs

jokiz

unread,
Oct 16, 2006, 2:07:23 AM10/16/06
to ccnet-user
was able to fix it when i added a logger switch for the nant task, i
thought when ccnet is the one executing a nant task, it automatically
uses such logger.

jokiz

unread,
Oct 16, 2006, 2:20:26 AM10/16/06
to ccnet-user
thought i fixed it, it only shows nant output and timings for a forced
build, for a build caused by detected modifications, it still shows no
nant outputs/timings report

jokiz

unread,
Oct 16, 2006, 3:18:07 AM10/16/06
to ccnet-user
btw: the merged logs from nant is noticeable in a build log without the
nant outputs like this:

<build date="10/16/2006 3:01:47 PM" buildtime="00:01:04" error="true"
buildcondition="IfModificationExists"><![CDATA[<buildresults
project="Elcs"><message level="Info"><![CDATA[Buildfile:
file:///c:/dev/elcs/elcs.build] ]></message><message
level="Info"><![CDATA[Target framework: Microsoft .NET Framework 1.1]
]></message><message level="Info"><![CDATA[Target(s) specified: full]
]></message><task
name="property"><duration>15.6246</duration></task><task
name="property"><duration>0</duration></task><task
name="property"><duration>0</duration></task><task
name="property"><duration>0</duration></task><task
name="property"><duration>0</duration></task><task
name="property"><duration>0</duration></task><task
name="property"><duration>0</duration></task><task
name="property"><duration>0</duration></task><task
name="property"><duration>0</duration></task><task
name="property"><duration>0</duration></task><task
name="property"><duration>0</duration></task><task
name="property"><duration>0</duration></task><task
name="property"><duration>0</duration></task><task
name="property"><duration>0</duration></task><task
name="property"><duration>0</duration></task><target name="clean"><task
name="delete"><message level="Info"><![CDATA[Deleting directory
'c:\dev\elcs\build'.]
]></message><duration>1890.5766</duration></task><duration>1906.2012</duration></target><target
name="updatebuildrevision"><task
name="property"><duration>0</duration></task><task name="if"><task
name="property"><duration>0</duration></task><duration>15.6246</duration></task><duration>15.6246</duration></target><target
name="updatesvnrevision"><task
name="property"><duration>0</duration></task><task name="exec"><message
level="Info">

compared to a log with nant outputs like this:

<build date="10/16/2006 12:54:03 PM" buildtime="00:12:12"
buildcondition="IfModificationExists"><buildresults project="Elcs">
<message level="Info"><![CDATA[Buildfile:
file:///c:/dev/elcs/elcs.build]]></message>
<message level="Info"><![CDATA[Target framework: Microsoft .NET
Framework 1.1]]></message>
<message level="Info"><![CDATA[Target(s) specified: full]]></message>
<task name="property">
<duration>0</duration>
</task>
<task name="property">
<duration>0</duration>
</task>
<task name="property">
<duration>0</duration>
</task>
<task name="property">
<duration>0</duration>
</task>
<task name="property">
<duration>0</duration>
</task>
<task name="property">
<duration>0</duration>
</task>
<task name="property">
<duration>0</duration>
</task>
<task name="property">
<duration>15.6246</duration>
</task>
<task name="property">
<duration>0</duration>
</task>
<task name="property">
<duration>0</duration>
</task>
<task name="property">
<duration>0</duration>
</task>
<task name="property">
<duration>0</duration>
</task>
<task name="property">
<duration>0</duration>
</task>
<task name="property">
<duration>0</duration>
</task>
<task name="property">
<duration>0</duration>
</task>
<target name="clean">
<task name="delete">
<message level="Info"><![CDATA[Deleting directory
'c:\dev\elcs\build'.]]></message>
<duration>1968.6996</duration>
</task>
<duration>1984.3242</duration>
</target>

jokiz

unread,
Oct 22, 2006, 11:53:04 PM10/22/06
to ccnet-user
found out that it was a bug with Nant which is now fixed with 0.85
release

Reply all
Reply to author
Forward
0 new messages