Java Subversion libraries
Asked Answered
H

1

15

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

Harbot answered 30/11, 2010 at 17:39 Comment(1)
Please note that SVNKit has commercial license, if used in closed source projects.Smalto
B
6

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.

Bister answered 30/11, 2010 at 18:8 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.