Hi,
I'm using the JavaHL wrapper, and I want to retrieve information
concerning
a repository local on my disk. Subversion version = 1.2.3 on Windows
2000.
Command-line I'd do something like this:
C:\>svn info file:///C:/depost/devel/workspace/SVNTest/rsc/test_base
Path: test_base
URL: file:///C:/depost/devel/workspace/SVNTest/rsc/test_base
Repository Root: file:///C:/depost/devel/workspace/SVNTest/rsc/test_base
Repository UUID: c022bfa7-2938-8241-adb1-bd93ce4e80c5
Revision: 4
...
Which gives me the correct results, as expected.
In Java however I fail to get this result. This is the unit test I
wrote:
public void testIsRepo()
{
SVNClient client = new SVNClient();
String cwd=System.getProperty("user.dir");
cwd=cwd.replaceAll("\\\\","/");
String path="file:///"+cwd+"/"+"rsc/test_base";
try {
// get information concerning the repository
Info info = client.info(path);
assertNotNull(info);
} catch (ClientException e) {
fail("Error on accessing local repository" +
e.getLocalizedMessage());
}
}
When I run this test, the result is:
svn: Can't check path
'file:\\\C:\depost\devel\workspace\SVNTest\rsc\test_base': The filename,
directory name, or volume label syntax is incorrect.
The 'path' variable contains
"file:///C:/depost/devel/workspace/SVNTest/rsc/test_base"
I also tried with
Info2[] info = client.info2(path, null, null, false);
But that gives the same result.
Can anybody help me to get this working?
Thanks,
Lieven Govaerts
ICT Processes
Post.be
STRICTLY PERSONAL AND CONFIDENTIAL
This message may contain confidential and proprietary material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient please contact the sender and delete all copies.
Dit bericht is enkel bestemd voor de aangeduide ontvangers en kan vertrouwelijke informatie bevatten. Als u niet de ontvanger bent, dan mag u de inhoud van dit bericht niet bekendmaken noch kopiëren. Als u dit bericht per vergissing ontvangen heeft, gelieve er de afzender of De Post onmiddellijk van op de hoogte te brengen en het bericht vervolgens te verwijderen.
Ce message est uniquement destiné aux destinataires indiqués et peut contenir des informations confidentielles. Si vous n'êtes pas le destinataire, vous ne devez pas révéler le contenu de ce message ou en prendre copie. Si vous avez reçu ce message par erreur, veuillez en informer l'expéditeur, ou La Poste immédiatement, avant de le supprimer.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 31 10:21:28 2005