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