Use svnant without username or password

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.local/path/to/my/proj': authorization failed (http://svn.local)
[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).

+3
source share
1

svn build.properties , , , ant script.

auth- , , , , , , . ant , , svn. ant, , .

svnkit , ant.

: http://www.nabble.com/svnant-and-authentication-td17865407.html

+1

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


All Articles