Search code examples
svntortoisesvnbranchnantnew-operator

How to create a svn branch using nant script?


I need to create a branch copy of my trunk. While executing my nant script.

How can I create one branch using nant script?

I am using windows command prompt to execute nant script.

Please help me.

Thanks


Solution

  • 
        <?xml version="1.0"?>
        <project name="testproj" default="createBranch" >
          <target name="createBranch" description="New School" >
            <exec program="svn.exe" basedir="svndirectorypath" commandline="copy -madded --username ${svnUserName} --password ${svnPassword} "sourcefilepath" "targetpath""  />
          </target>
        </project>