john
john

Reputation: 41

Retrieve SVN repository list from within Java application

I need the list of repositories from the SVN server and also I need the associated users connectd to particular repository using Java API or through SVN command.

I have got the code to get the details inside the repository, but I'm not able to get the repository list from server.

Upvotes: 1

Views: 3064

Answers (2)

Mark Phippard
Mark Phippard

Reputation: 10419

Subversion does not provide any API or interface for getting the list of repositories from a server. If you are using Apache, you could probably issue a GET request to the root of the SVN server and then screen scrape the results to get the list of repositories.

Another option would be to use Subversion Edge for your server. It includes a full REST API for server management type things such as getting the list of repositories. See:

https://ctf.open.collab.net/sf/wiki/do/viewPage/projects.svnedge/wiki/ApiDocs

I am not aware of any options that would work if you are using svn:// or svn+ssh:// protocols.

Upvotes: 1

f4lco
f4lco

Reputation: 3824

Have a look at SVNKit:

SVNKit is a pure Java toolkit - it implements all Subversion features and provides APIs to work with Subversion working copies, access and manipulate Subversion repositories - everything within your Java application.

Upvotes: 0

Related Questions