Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Subversive » SVNKit Access
SVNKit Access [message #1019275] Fri, 15 March 2013 10:59
Daniel Pires is currently offline Daniel PiresFriend
Messages: 1
Registered: March 2013
Junior Member

I'm using SVNKit to develop an application in Java to communicate with SVN. And I'm having trouble with doInfo() to get information about my SVN commit, in the server where I need run my java application if I use this code

SVNClientManager manager = SVNClientManager.newInstance(SVNWCUtil.createDefaultOptions( false ), new BasicAuthenticationManager("user", "password"));
SVNWCClient wcclient = manager.getWCClient();
SVNInfo info = wcclient.doInfo(new File("file://localhost/repos/projdemo/"), SVNRevision.BASE);

But when I run this code I've this error:

Exception in thread "main" org.tmatesoft.svn.core.SVNException: svn: E155007: '\apps\svn\tools\file:\localhost\repos\projedemo' is not a working copy
	at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(
	at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(

How I can force the pathname is "file://localhost/repos/projdemo/" instead "\apps\svn\tools\file:\localhost\repos\projedemo"

Use this signature of the method: doInfo ( path, SVNRevision revision)

Thanks in advance,
Previous Topic:label decorator does not work in Juno
Next Topic:Subversive does not detect tree conflict
Goto Forum:

Current Time: Tue May 31 21:55:22 GMT 2016

Powered by FUDForum. Page generated in 0.15675 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software