Re: [Subclipse-users] how to access programatically project root URL? ( "full" url, not getUrl() or getLocation() )
Why not look at what the Team > Show History option does? You can
probably even used the classes from the core plugin that fetch and
retrieve the results?
On Tue, Feb 9, 2010 at 11:48 AM, Nicolas Anquetil
> 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 =
> ISVNRepositoryLocation rl = rp.getSVNWorkspaceRoot().getRepository();
> ISVNClientAdapter client = rl.getSVNClient();
> client.getLogMessages(fileUrl, revStart, revEnd);
> for my real repository svn+ssh://machine/repo/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:51:04 CET
This is an archived mail posted to the Subclipse Users