pesso <
codesolutions@yahoo.com> reported on 2008-07-21 to the ccnet-user mailing list:
After adding <merge><files><file>c:\cygwin\bin\build.log</file></
files></merge> in the publishers block, I'm getting the following
exception at the end of a build. Does any one know what might be causing it? How would I fix it?
[ITU:DEBUG] Exception: System.Xml.XmlException: Name cannot begin with the '>' character, hexadecima l value 0x3E. Line 85, position 124.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String[] args)
at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos)
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlWriter.WriteNode(XmlReader reader, Boolean
defattr)
at
ThoughtWorks.CruiseControl.Core.Util.XmlFragmentWriter.WriteNode(XmlReader
reader, Boolean def
attr)
at
ThoughtWorks.CruiseControl.Core.Util.XmlFragmentWriter.WriteNode(String
xml)
[ITU:INFO] Integration complete: Failure - 7/16/2008 2:53:08 PM
My publishers block looks like this:
<publishers>
<merge><files><file>c:\cygwin\bin\build.log</file></files></merge>
<xmllogger logDir="D:\Output\buildlogs" />
<email from="
xyz@abc.com" mailhost="xyz.local"
includeDetails="TRUE">
pesso writes:
>[ITU:DEBUG] Exception: System.Xml.XmlException: Name cannot begin with
>the '>' character, hexadecimal value 0x3E. Line 85, position 124.
That message should have been preceded by a message telling you that the data was being written to the build log anyway ("Supplied output is not valid xml. Writing as CDATA"), and it should be there. What you've discovered the hard way is that files processed by the <merge> task must be in proper XML format. The documentation doesn't say that, so I'll correct it.