Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Subversion libraries

I've been researching Java APIs for Subversion (SVN). It seems there are 3 available:

  • JavaHL - part of the SVN project. Provides a relatively low-level API
  • svnClientAdapter - part of the Subclipse project. Provides a relatively high-level API
  • SVNKit - unlike the other 2, this provides a 100% Java implementation of the SVN protocol, i.e. no native libaries must be installed. It provides a high-level API, a low-level API, an implementation of JavaHL, and a command-line client that uses SVNKit for it's implementation.

I have no practical experience with any of these APIs, but assuming the above is true, SVNKit looks like a clear winner. I know from experience that appearances can be deceiving, so am looking for feedback from someone who has actually used one or more of these libraries. Is SVNKit the runaway winner, as suggested above, or is there a better choice.

I guess the answer will depend on what I'll be doing with the API, and (perhaps surprisingly), the answer is mostly writing, e.g. adding, updating and deleting files, creating projects and repositories, branching, etc.

Thanks! Don

like image 421
Dónal Avatar asked Nov 30 '10 17:11

Dónal


1 Answers

I've used SVNKit, it worked for me...they have some example's in their downloads... I was not so much comfortable learning it by those examples, but this link worked for me...

I could implement following functionality easily: CheckIn(Local Copy(LC) to Repository(R)), CheckOut(R to LC), Commit(Update changes from LC to Rep) , importing Dir/File to R, deleting Dir/File from R...

P.S. - This forum is also very helpful.

like image 195
Eternal Noob Avatar answered Sep 29 '22 03:09

Eternal Noob