Daniel,

 

Now I undertand.  So the output always goes to the log file e.g.:

 

C:\Program Files (x86)\CruiseControl.NET\server>type temp.log
2011-01-21T09:59:36.8548909+00:00 Validating ccnet.config
2011-01-21T09:59:37.7699433+00:00 Loaded project 'DfuzeDBUpgrader'
2011-01-21T09:59:37.9749550+00:00 Internal validation passed
2011-01-21T09:59:38.1489649+00:00 Configuration loaded (5.04s)
2011-01-21T10:05:03.6745839+00:00 Validating ccnet.config
2011-01-21T10:05:04.0996083+00:00 No loaded type is marked up with a 
ReflectorType attribute that matches the Xml node (BOLLOCKS).  Xml Source: 
<BOLLOCKS />
2011-01-21T10:05:04.5966367+00:00 Loaded project 'DfuzeDBUpgrader'
2011-01-21T10:05:04.7916478+00:00 Internal validation passed
2011-01-21T10:05:04.9446566+00:00 Configuration loaded (4.31s)
2011-01-21T10:05:45.1999591+00:00 The configuration file contains invalid xml: 
C:\Program Files (x86)\CruiseControl.NET\server\ccnet.config
2011-01-21T10:07:42.4126632+00:00 The configuration file contains invalid xml: 
C:\Program Files (x86)\CruiseControl.NET\server\ccnet.config

 

I was hoping to use CCValidator as a test for the CC.NET project I use to 
automatically update its config file as per 
http://confluence.public.thoughtworks.org/display/CCNET/Configure+CruiseControl.Net+to+Automatically+Update+its+Config+File.
 This ensures the project reports failure if the config file contains errors 
rather than simply ignoring the new config which confuses my developers.

 

Is there a better way to fail the build if ccnet.config contains errors than 
using CCValidator?  If not how do you get CCValidator to fail the build when it 
detects errors?

 

Regards

 

David

 
> Date: Thu, 20 Jan 2011 17:11:57 +0100
> Subject: Re: [ccnet-user] CCValidator -nogui
> From: [email protected]
> To: [email protected]
> 
> IIRC there is a command line switch to make it write to a log file.
> Have you tried -h or -? to get the command line help?
> 
> Best regards,
> 
> Daniel
> 
> 
> 2011/1/19 DavidATaylor <[email protected]>:
> > I have used cruise control for about 6 years.  When I try to run
> > ccvalidator from the command line, nothing seems to happen it just
> > exits without even a return value.  How do you know if it succeeded or
> > not?  This has happened in in the past on various systems but I am
> > currently using:
> >
> > 64 windows server 2008 r2
                                          

Reply via email to