I'm pretty sure this is a configuration issue but i can't seem to grasp how 
to achieve what i want. Here's my issue:
I'm using NAnt + NAntContrib to build VB6 project files using NAntContrib's 
VB6 Task. 
My build outputs a text file with the build errors. I used the merge task 
and it works, it does merge it. However, it merges it in the strangest 
place...

Instead of being put inside the <failure> element or somewhere similar, 
it's added at the end of <build> element and since it's there it's 
obviously not showing directly in the build report on the dashboard or in 
the email sent...

Here's a lightly anonymized copy of my <build> element... the part im 
interested in is the "<![CDATA["Compile Error in File.." part... id really 
like to have that in the email and in the build report of the dashboard.

Thanks in advance.



<build date="2013-01-23 13:41:21" buildtime="00:00:07" error="true" 
buildcondition="ForceBuild"><buildresults project="VB6_xxxxxxxxxxxxxx">
  <message level="Info"><![CDATA[Buildfile: 
file:///C:/AutomatedBuilds/VB6_SVN2.build]]></message>
  <message level="Info"><![CDATA[Target framework: Microsoft .NET Framework 
4.0]]></message>
  <message level="Info"><![CDATA[Target(s) specified: 
ClearLogFile]]></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="loadtasks">
    <duration>62.501200000000004</duration>
  </task>
  <target name="ClearLogFile">
    <task name="delete">
      <message level="Info"><![CDATA[Deleting 1 files.]]></message>
      <duration>0</duration>
    </task>
    <duration>0</duration>
  </target>
  <duration>93.7518</duration>
</buildresults><buildresults project="VB6_xxxxxxxxxxxxxx">
  <message level="Info"><![CDATA[Buildfile: 
file:///C:/AutomatedBuilds/VB6_SVN2.build]]></message>
  <message level="Info"><![CDATA[Target framework: Microsoft .NET Framework 
4.0]]></message>
  <message level="Info"><![CDATA[Target(s) specified: VB6Build]]></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="loadtasks">
    <duration>62.501200000000004</duration>
  </task>
  <target name="VB6Build">
    <task name="vb6">
      <message level="Info"><![CDATA[Building project 
'xxxxxxxxxxxxxx\xxxxxxxxxxxxxx.vbg'.]]></message>
      <duration>125.00240000000001</duration>
    </task>
    <duration>140.6277</duration>
  </target>
  <duration>218.7542</duration>
</buildresults><buildresults project="VB6_xxxxxxxxxxxxxx">
  <message level="Info"><![CDATA[Buildfile: 
file:///C:/AutomatedBuilds/VB6_SVN2.build]]></message>
  <message level="Info"><![CDATA[Target framework: Microsoft .NET Framework 
4.0]]></message>
  <message level="Info"><![CDATA[Target(s) specified: VB6Build]]></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="loadtasks">
    <duration>62.501200000000004</duration>
  </task>
  <target name="VB6Build">
    <task name="vb6">
      <message level="Info"><![CDATA[Building project 
'xxxxxxxxxxxxxx'.]]></message>
      <message level="Info"><![CDATA[xxxxxxxxxxxxxx is out of date, 
recompiling.]]></message>
      <duration>4125.0792</duration>
    </task>
    <duration>4140.7045</duration>
  </target>
  <failure>
    <builderror>
      <type>NAnt.Core.BuildException</type>
      <message><![CDATA[External Program Failed: C:\Program Files\Microsoft 
Visual Studio\VB98\VB6.EXE (return code was 1)]]></message>
      <location>
        <filename>C:\AutomatedBuilds\VB6_SVN2.build</filename>
        <linenumber>174</linenumber>
        <columnnumber>4</columnnumber>
      </location>
      <stacktrace><![CDATA[   at 
NAnt.Core.Tasks.ExternalProgramBase.ExecuteTask()
   at NAnt.Contrib.Tasks.Vb6Task.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()]]></stacktrace>
    </builderror>
  </failure>
  <duration>4234.4563</duration>
</buildresults>Buildfile: file:///C:/AutomatedBuilds/VB6_SVN2.build
Target framework: Microsoft .NET Framework 4.0
Target(s) specified: VB6Build 


VB6Build:

      [vb6] Building project 'xxxxxxxxxxxxxx.vbg'.
      [vb6] xxxxxxxxxxxxxx is out of date, recompiling.

BUILD FAILED

C:\AutomatedBuilds\VB6_SVN2.build(174,4):
External Program Failed: C:\Program Files\Microsoft Visual 
Studio\VB98\VB6.EXE (return code was 1)

Total time: 4.2 seconds.

<![CDATA[
Compile Error in File 'xxxxxxxxxxxxxx', Line 3 : Expected: end of statement
Build of 'xxxxxxxxxxxxxx.vbg' failed.
]]></build>

-- 



Reply via email to