I checked the code using the svn command line. I have an Ant build script that I want to run that will commit when it is done.
I would like to use svnant for example
<svn svnkit="false" javahl="false" failonerror="true">
<commit dir="${dir}" message="${message}"/>
</svn>
but it does not work and gives this error
[svn] <Commit> started ...
[svn] svn: Commit failed (details follow):
[svn] svn: OPTIONS of 'http:
[svn] <Commit> failed !
However, if I do exec directly, like this
<exec executable="svn">
<arg line="commit ${dir} -m '${message}'"/>
</exec>
it will work fine. What is strange is that using svnkit="false"and javahl="false"should make svnant use the svn command line.
So what is going on here? I do not need to provide a username / password in the svnant call, since the svn command line line clearly does not need it (it was cached).
source
share