Rather Frustratingly... :-( This does not work! <?xml version="1.0" encoding="utf-8"?> <ArrayOfModification xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Modification> <Type /> <FileName /> <FolderName /> <ModifiedTime>2009-02-30T11:57:58</ModifiedTime> <UserName /> <ChangeNumber>48968</ChangeNumber> <Version /> <Comment /> <EmailAddress /> </Modification> </ArrayOfModification>
With the error: System.InvalidOperationException: There is an error in XML document (8, 4). ---> System.FormatException: The string '2009-02-30T11:57:58' is not a valid AllXsd value. at System.Xml.Schema.XsdDateTime..ctor(String text, XsdDateTimeFlags kinds) Eh? ;-( On 3 Feb, 14:12, CinnamonDonkey <[email protected]> wrote: > OK, it seems to need at the very least! ModifiedTime and > ChangeNumber: > > <?xml version="1.0" encoding="utf-8"?> > <ArrayOfModification xmlns:xsi="http://www.w3.org/2001/XMLSchema- > instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > <Modification> > <Type /> > <FileName /> > <FolderName /> > <ModifiedTime>2009-01-30T17:15:59</ModifiedTime> > <UserName /> > <ChangeNumber>12345</ChangeNumber> > <Version /> > <Comment /> > <EmailAddress /> > </Modification> > </ArrayOfModification> > > Results in: = No modifications detected. > > On 3 Feb, 14:05, Ruben Willems <[email protected]> wrote: > > > Hi > > yes > > > line 8, position 10 > > > with kind regards > > Ruben Willems > > > On Tue, Feb 3, 2009 at 3:03 PM, CinnamonDonkey < > > > [email protected]> wrote: > > > > System.InvalidOperationException: There is an error in XML document > > > (8, 10). ---> System.FormatException: The string '' is not a valid > > > AllXsd value. > > > at System.Xml.Schema.XsdDateTime..ctor(String text, > > > XsdDateTimeFlags kinds) > > > at System.Xml.XmlConvert.ToDateTime(String s, > > > XmlDateTimeSerializationMode dateTimeOption) > > > at System.Xml.Serialization.XmlCustomFormatter.ToDateTime(String > > > value) > > > at System.Xml.Serialization.XmlSerializationReader.ToDateTime > > > (String value) > > > at > > > > Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderModificationArray.Read2_Modification > > > (Boolean isNullable, Boolean checkType) > > > at > > > > Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderModificationArray.Read3_ArrayOfModification > > > () > > > --- End of inner exception stack trace --- > > > at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader > > > xmlReader, String encodingStyle, XmlDeserializationEvents events) > > > at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader > > > textReader) > > > at > > > > ThoughtWorks.CruiseControl.Core.Sourcecontrol.ExternalSourceControlHistoryParser.Parse > > > (TextReader history, DateTime from, DateTime to) > > > at > > > > ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.ParseModifications > > > (ProcessResult result, DateTime from, DateTime to) > > > at > > > > ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.GetModifications > > > (ProcessInfo info, DateTime from, DateTime to) > > > at > > > > ThoughtWorks.CruiseControl.Core.Sourcecontrol.ExternalSourceControl.GetModifications > > > (IIntegrationResult from, IIntegrationResult to) > > > at > > > ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModifications > > > (ISourceControl sourceControl, IIntegrationResult lastBuild, > > > IIntegrationResult thisBuild) > > > at > > > ThoughtWorks.CruiseControl.Core.IntegrationRunner.GetModifications > > > (IIntegrationResult from, IIntegrationResult to) > > > at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate > > > (IntegrationRequest request) > > > at ThoughtWorks.CruiseControl.Core.Project.Integrate > > > (IntegrationRequest request) > > > at ThoughtWorks.CruiseControl.Core.ProjectIntegrator.Integrate() > > > at ThoughtWorks.CruiseControl.Core.ProjectIntegrator.Run() > > > > On 3 Feb, 14:02, CinnamonDonkey <[email protected]> wrote: > > > > Preparing to run source control command: C:\Program Files > > > > \CruiseControl.NET\scripts\dist\sourceControl.exe GETMODS "2009-02-03 > > > > 13:58:45" > > > > "2009-02-02 09:59:49" --user=build --port=Server:1666 -- > > > > client=MyClient --view=//depot/dev/main/... > > > > > <?xml version="1.0" encoding="utf-8"?> > > > > <ArrayOfModification xmlns:xsi="http://www.w3.org/2001/XMLSchema- > > > > instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > > > > <Modification> > > > > <Type /> > > > > <FileName /> > > > > <FolderName /> > > > > <ModifiedTime /> > > > > <UserName /> > > > > <ChangeNumber>48964</ChangeNumber> > > > > <Version /> > > > > <Comment /> > > > > <EmailAddress /> > > > > </Modification> > > > > </ArrayOfModification> > > > > INTERNAL ERROR: There is an error in XML document (8, 10). > > > > > Does the error here mean line 8? > > > > > On 3 Feb, 13:46, Ruben Willems <[email protected]> wrote: > > > > > > Hi > > > > > > as far as I know, there is nothing really needed, > > > > > it depends on the stuff you do with it later on. > > > > > > Suppose you have the modification history plugin enabled, > > > > > and the filename and foldername are blank. > > > > > It will not show > > > > > > to be sure, I would play with it, because there is a difference in > > > > > <FileName></FileName> > > > > > > and the element not being there > > > > > > To be safe, I would foresee the elements, and leave them blank > > > > > <FileName/> > > > > > > this should prevent a lot of errors > > > > > > of course, if you really want, > > > > > you may just enter the changelist number, and report > > > > > where CCNet failed, so we can update the code (checking for element > > > > > existance) if possible ;-) > > > > > > with kind regards > > > > > Ruben Willems > > > > > > On Tue, Feb 3, 2009 at 2:39 PM, CinnamonDonkey < > > > > > > [email protected]> wrote: > > > > > > > What does CC.Net use, with respect to the External Source Control > > > > > > results, to decide that there have been modifications? > > > > > > > Consider the following block: > > > > > > > <?xml version="1.0" encoding="utf-8"?> > > > > > > <ArrayOfModification xmlns:xsi="http://www.w3.org/2001/XMLSchema- > > > > > > instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > > > > > > <Modification> > > > > > > <ChangeNumber>12245</ChangeNumber> > > > > > > <Comment>New Project for testing stuff</Comment> > > > > > > <EmailAddress>[email protected]</EmailAddress> > > > > > > <FileName>AssemblyInfo.cs</FileName> > > > > > > <FolderName>Dev\Server\Interface\Properties\</FolderName> > > > > > > <ModifiedTime>2006-11-22T11:11:00-0500</ModifiedTime> > > > > > > <Type>add</Type> > > > > > > <UserName>joe_user</UserName> > > > > > > <Url>http://www.example.com/index.html</Url> > > > > > > <Version>5</Version> > > > > > > </Modification> > > > > > > </ArrayOfModification> > > > > > > > How many of these parameters are needed and what can be faked? > > > > > > > Personally I am only interested in the changelist number, comment, > > > > > > username and email address. Everything else is surplus to > > > requirements > > > > > > for what I am doing (trying to ensure that every changelist in > > > > > > perforce is built). > > > > > > > Cheers, > > > > > > Shaun > > > > > > > On 29 Jan, 12:17, CinnamonDonkey <[email protected]> > > > > > > wrote: > > > > > > > Hi Craig & Sammi, > > > > > > > > Thank you for the reply. > > > > > > > > It looks like the Gremlins are on holiday today because this > > > magically > > > > > > > started working :-) (It's probably a coder error on my behalf > > > > > > > somewhere along the line but I don't know where). > > > > > > > > Does (10,10) mean Line 10, Column 10? > > > > > > > > Shaun > > > > > > > > On 28 Jan, 18:47, "Craig & Sammi Sutherland" > > > > > > > > <[email protected]> wrote: > > > > > > > > Hi Shaun, > > > > > > > > > I've had a quick look at the wiki this morning and compared it > > > > > > > > to > > > the > > > > > > code - > > > > > > > > it appears to up-to-date. > > > > > > > > > Looking at the code and your error message, it is saying there > > > appears > > > > > > to be > > > > > > > > a problem with the XML file. The (10, 10) is the location of the > > > error, > > > > > > but > > > > > > > > I've tried to find the error and it looks ok. > > > > > > > > > Craig > > > > > > > > > -----Original Message----- > > > > > > > > From: [email protected] [mailto: > > > [email protected]] > > > > > > On > > > > > > > > > Behalf Of CinnamonDonkey > > > > > > > > Sent: Wednesday, 28 January 2009 10:24 p.m. > > > > > > > > To: ccnet-user > > > > > > > > Subject: [ccnet-user] External Source Control - Modifications > > > Format > > > > > > > > > Hi, > > > > > > > > > Can someone please tell me if the Wiki documentation for > > > "External > > > > > > > > Source Control" is up to date? > > > >http://confluence.public.thoughtworks.org/display/CCNET/External+Sour. > > > > > > .. > > > > > > > > rol > > > > > > > > > If I create an app that simply writes to STDIO the following > > > (taken > > > > > > > > from the modification writer example): > > > > > > > > > <?xml version="1.0" encoding="utf-8"?> > > > > > > > > <ArrayOfModification xmlns:xsi=" > > >http://www.w3.org/2001/XMLSchema- > > > > > > > > instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > > > > > > > > <Modification> > > > > > > > > <ChangeNumber>12245</ChangeNumber> > > > > > > > > <Comment>New Project for testing stuff</Comment> > > > > > > > > <EmailAddress>[email protected]</EmailAddress> > > > > > > > > <FileName>AssemblyInfo.cs</FileName> > > > > > > > > > > > > > > > > <FolderName>Dev\Server\Interface\Properties\</FolderName> > > > > > > > > <ModifiedTime>2006-11-22T11:11:00-0500</ModifiedTime> > > > > > > > > <Type>add</Type> > > > > > > > > <UserName>joe_user</UserName> > > > > > > > > <Url>http://www.example.com/index.html</Url> > > > > > > > > <Version>5</Version> > > > > > > > > </Modification> > > > > > > > > </ArrayOfModification> > > > > > > > > > The server log shows the error: INTERNAL ERROR: There is an > > > > > > > > error > > > in > > > > > > > > XML document (10, 10). > > > > > > > > > What does (10,10) mean? > > > > > > > > > I'm going to try adding the modification writer to my config and > > > see > > ... > > read more »
