Reputation: 9
I have to commit some code to the svn using ant script, Before committing to the SVN i should validate the credentials ,Is there any command in svn for validating the username and password from ant script
Upvotes: 0
Views: 509
Reputation: 97325
No, special command for validating credentials does not exist in SVN
but: you can to use any SVN command for accessing remote repository and use --username
and --password
option in it
but BEWARE: 1) nor successful nor failed command doesn't return exit-code|error-code to caller, you have to validate and *check output 2) even successful READ command doesn't mean "OK" for WRITE command (you can test on URL with anonymous read access or user can have only read-access to test-URL)
I think, best solution (dirty hack) for testing will be complex of
$authenticated = rw
permissions on itsvn ci $BLACKHOLE --username ... --password ...
as test-toolUpvotes: 1