Skip to main content

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:Eclipse 3.4 support SVN 1.7
Next Topic:How to commit an outdated version of a file
Goto Forum:

Current Time: Thu Sep 20 20:27:46 GMT 2018

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

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

Back to the top