SVN automation adds the use of NAnt

I want to automate the addition of SVN using NAnt. I want to add all new files in this directory to SVN. The NAnt script will successfully execute the add command, but will display the Add Tortoise SVN dialog box, which is not acceptable because it will run on the build server that CruiseControl is running on. The build server is running Windows Server 2003.

Any ideas?

<target name="addtest">
    <exec program="c:\program files\tortoisesvn\bin\tortoiseproc.exe" 
        commandline="/command:add * --force /path:C:\svn\test /notempfile /closeonend:1"
        basedir="C:\svn\test"
        failonerror="false"/>
</target>
+3
source share
3 answers

Instead of using the exec task , there is an svn task , which is provided by NAntContrib with a set of tasks / tools.

<svn command="add" ... />

, , , subversion , exec svn.exe, , .

<exec program="svn.exe" commandline="add..." />
+7

do not use the turtle!

just go to svn command line.

c:\>svn add ...
+1
source

Source: https://habr.com/ru/post/1698869/


All Articles