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 Pires
Messages: 1
Registered: March 2013
Junior Member
Hi,

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(SVNErrorManager.java:64)
	at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)


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

Note:
Use this signature of the method: doInfo (java.io.File path, SVNRevision revision)


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


Current Time: Sat Oct 25 19:18:18 GMT 2014

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

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