Click here to Skip to main content
15,888,121 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have added below code in Test.proj file, which is used in buildargs tag in ccnet.config file as show below
<buildargs>Test.proj /p:Configuration=Debug /p:Platform="x86"</buildargs>
This tag used in ccnet.config file.
<project defaulttargets="Build">
	xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;
    
    <import project="&lt;br" mode="hold" />      "C:\Program Files\MSBuild\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/&gt;  
      <target name="GetSource">
            <message text="Checking out trunk into $(SourceDirectory)" />
             <exec command="svn checkout [-r rev] https://202.63.108.3/svn/cruiseit/trunk/myfolder" />
            <svncheckout repositorypath="https://202.63.108.3/svn/cruiseit/trunk/myfolder">
                LocalPath="D:\Satish\TestSVN"
                UserName="satishn"
                Password="techvedika"&gt;
                <output taskparameter="Revision" propertyname="Revision" />
            </svncheckout>
            <message text="Have got revision: $(Revision)" />
        </target>    
     <target name="Build">
	<calltarget targets="GetSource" />
        &lt;!-- Clean, then rebuild entire solution --&gt;
        <msbuild projects="D:\Satish\TestSVN\outputcache\outputcache.sln" /> 
    </target>

</project>



After eccuting this i got below error.
D:\build1\Test.proj(8,14): error MSB3073: The command "svn checkout [-r rev] https://202.63.108.3/svn/cruiseit/trunk/myfolder" exited with code 9009.



Please tell me how to rectify this error and then to execute buid
Posted
Updated 27-Sep-11 18:32pm
v2

1 solution

SVN checkout requires authentication and you must supply a username and password for it to work.

It is better to checkout your source code once, then use the following line in your CCNET.config for your build routines :
svn update --non-interactive --password [password here]


and to commit use :

svn commit --non-interactive --password [password here]
 
Share this answer
 
Comments
skumarn 28-Sep-11 3:14am    
Hi Mehdi,

I tried the whatever you suggest, but build failed. I modified Test.proj file asshown below
<Project DefaultTargets="Build"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<import project="
" "c:\program="" files\msbuild\msbuildcommunitytasks\msbuild.community.tasks.targets"="">
<target name="GetSource">
<message text="Checking out trunk into $(SourceDirectory)">
<svncheckout repositorypath="https://202.63.108.3/svn/cruiseit/trunk/myfolder/"
="" localpath="D:\Satish\TestSVN" username="satishn" password="techvedika">


<message text="Have got revision: $(Revision)">

<target name="Build">
<calltarget targets="GetSource">
<!-- Clean, then rebuild entire solution -->
<msbuild projects="D:\Satish\TestSVN">

</Project>

Then it gives us an error like this
error MSB6004: The specified task executable location "C:\Program Files\Subversion\bin\svn.exe" is invalid.

Please tell me how to rectify this error...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900