Cruise control net and Unable to execute file svnexe

The sourceControl task of cc.net should specify the path of the executable of svn.exe as in the following example.

1
2
3
4
5
6
7
8
<sourcecontrol type="svn">
   <workingDirectory>C:\CruiseControl.NET\Projects\xxx\src</workingDirectory>
   <trunkUrl>svn://10.8.0.1/xxx</trunkUrl>
   <username>CCnet</username>
   <password>xxxx</password>
   <autoGetSource>true</autoGetSource>
   <executable>c:\Program Files\Subversion\bin\svn.exe</executable>
</sourcecontrol>

If you omit the <executable> part of the source control it happens that if you do not have subversion in your path, cc.net cannot find svn.exe. The error is something like “Unable to execute file C:\CruiseControl.NET\Projects\xxx\svn.exe” and it could be misleading since cc.net try to execute svn in the directory of the project.

Alk.

Tags: Cc.net subversion