aspose file tools*
The moose likes Tomcat and the fly likes How to create repository in svn by using java-svn API?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to create repository in svn by using java-svn API??" Watch "How to create repository in svn by using java-svn API??" New topic
Author

How to create repository in svn by using java-svn API??

Sharad kumar Yadav
Greenhorn

Joined: Jan 09, 2013
Posts: 1
I have installed SVN in my machine and now i am trying to create repository in my local hard disk drive through java-svn api. How can i access it?
This is the code which i am trying to use. Please guide me to it.
FSRepositoryFactory.setup();
String url="file:///d:/repo";
SVNRepository repository = null;
try {
repository = FSRepositoryFactory.create(SVNURL.parseURIEncoded(url));
} catch (SVNException e){
e.printStackTrace();
System.exit(1);
}

Thankyou
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to create repository in svn by using java-svn API??