[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Subclipse-users] how to access programatically project root URL? ( "full" url, not getUrl() or getLocation() )

From: Nicolas Anquetil <anquetil.nicolas_at_gmail.com>
Date: Tue, 9 Feb 2010 17:48:05 +0100


Already asked that a week ago but since I got no answer I am now trying with
a more explicit subject

I am trying to use programatically subversion to get log data of a project
in Eclipse. The project is "Team shared" under exclipse (with SVN of

I can do it with a local repository (a repository url like: file:// ...)

SVNTeamProvider rp =(SVNTeamProvider)Rep​ositoryProvider.getP
ISVNRepositoryLocation rl = rp.getSVNWorkspaceRo​ot().getRepository()​;
ISVNClientAdapter client = rl.getSVNClient();
client.getLogMessages(fileUrl, revStart, revEnd);

for my real repository svn+ssh://machine/re​po/path/to/project, I cannot get
it to work.
The problem is that rl.getLocation() or rl.getUrl() only give me the root
path of the repository: svn+ssh://machine/repo/ whitout the root of the
project inside it: /path/to/project :-(
so getLogMessages looks for url svn+ssh://machine/repo/file and is missing
the /path/to/project/file part.
Fiddling around with eclipse debug, I found out that the complete path of
the project may be found in rp.getSVNWorkspaceRoot().url but this is a
private attribute :-(

Any help our pointer would be appreciated to its full value.



Nicolas Anquetil        Univ. Lille1 / INRIA-equipe RMod
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2010-02-09 17:48:20 CET

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.