Reputation: 73
I need help from you, i want open a file from SVN using java code, can any one tell me the flow of accessing the files, or can any one send me sample code for that one.
Can any one send me example code for accessing svn through HTML using java.
Upvotes: 7
Views: 16146
Reputation: 21
If you are doing this at work, and are not working on an open source project, I would stray away from SVNKit. They call themselves open source, but will charge you if you use SVNKit for commercial purposes.
Another good option is Apache Maven SCM(Source Code Manager). The docs are a little spotty, but it is truly open source. Here's a link to their page with some SVN examples.
Upvotes: 0
Reputation: 1
A simple way could be to run an svn
command from Java. For instance you could run the command
svn cat yourfile.txt > /tmp/yourtemporaryplace.txt
then have Java read the /tmp/yourtemporaryplace.txt
. Even better, read from the process running svn cat yourfile.txt
like in this question on java popen
You could also use a SVN client java library like svnkit
(PS I don't code in Java usually, just googled for you)
Upvotes: 1
Reputation: 61705
You need to look at SVNKIT, Subversion for Java. From there:
It supports
Upvotes: 6
Reputation: 5958
Though I have not use for my projects, It seems like following library is worth to look at. http://svnkit.com/
Upvotes: 1