Using ANT and SVNANT, I want to check in a working directory that has a mix of svn-controlled files and new files and sub-directories. According to my understanding of the SVN ANT "add" task, using the "force" flag as I have below should do something similar to svn add --force *
Basically, I'm having the same issue described in this issue at the CollabNet site.
Here's my xml config:
<target name="add-new-files-to-test-repo" depends="check-out-projects">
<svn username="${svn.test.username}" password="${svn.test.password}" svnkit="true" javahl="false">
<add
force="true" >
<fileset dir="${svn.testdir}"/>
</add>
</svn>
<echo message="Adding new files to SVN"/>
</target>
Gives the response:
svn: 'D:\Workspaces\TreXProjects\Build\testdir\New Text Document.txt' is already under version control