Tutorial :CCNetConfig command line parameter for opening a ccnet.config?


I'm trying out CCNetConfig (warning, website a little slow). Great app, one annoyance.

I can see in the documentation and even in the source code (Look at the end of the Initialize method) that I should be able to pass in a command line parameter to automatically load the configuration file.

I have tried:

-f E:\CruiseControl.Net\server\ccnet.config  -file E:\CruiseControl.Net\server\ccnet.config  -f=E:\CruiseControl.Net\server\ccnet.config  -file=E:\CruiseControl.Net\server\ccnet.config  

And the same 4 switches with quotes around the file name just in case.

They all produce errors or just don't work. Has anyone had success doing this?

Thanks in advance.


Try moving it to a different path. Try the simplest thing: c:\ccnet.config.

I'm guessing it's the source of the problem because I recall CCNetConfig gave me sh!t early on when I tried to open files in paths that had spaces in them (e..g in Program Files).


According to my version of CCNet the command line flag for using a different config file is -c or --config, so the following should do it...

-c "E:\CruiseControl.Net\server\ccnet.config"  

...which works for me.

I don't know why it uses a non-standard flag, but there you go.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »