Running svn diff from task execution

I am running the nant task to pack all the source files into zip and into the same task, I want to run the svn diff command in one specific folder to notify about changes made in this source. The command I want to execute in its simplest form is from the command line:

svn diff $Special_Folder$ > Changes_In_$Special_Folder$.patch

I have the following xml in nant target

<svn command="diff"
             destination="..\build\Database\Scripts"    
             uri ="http://SVN-server/PATH/To/Src">       
</svn>

However, I get an svn error message that says error from svn. What am I doing wrong?

+3
source share
1 answer

I figured out how to do it. The solution is not related to the task. I was able to do this through the assignment.

<target name="takeDiff" >
    <echo message="Taking svn diff of Database scripts...  "/>
     <exec program="svn.exe" 
                commandline="diff Database/Scripts" 
                output="${build.dir}/script_Diff.patch" 
                failonerror="true"/> 
    <echo message="Diff is in ${build.dir}\script_Diff.patch...  "/>
</target>
+4
source

All Articles