Need help trying to show changed files between baselines.
Hi,
I'm relativity new to Java and quite new to RTC. I am looking for samples with the Plain Java API to help me try to list files that have changed in each component between releases (Baselines).
I've looked at the samples that come with the plain Java API's which explain some of the basics but there doesn't seem to be much that shows much more detail, especially with the source control side. Is it possible for someone to post a sample to achieve the above.
Thanks for any help,
Regards,
Jason
I'm relativity new to Java and quite new to RTC. I am looking for samples with the Plain Java API to help me try to list files that have changed in each component between releases (Baselines).
I've looked at the samples that come with the plain Java API's which explain some of the basics but there doesn't seem to be much that shows much more detail, especially with the source control side. Is it possible for someone to post a sample to achieve the above.
Thanks for any help,
Regards,
Jason
13 answers
The main thing I'm trying to work out is how to use the "Searches" to find baselines (And snapshots) linked to a stream or a component within a stream.
The search doesn't seem to have any understandable methods to do this.
Cheers,
Jas
IWorkspaceManager wm = SCMPlatform.getWorkspaceManager(teamRepository);
IBaselineSearchCriteria search = IBaselineSearchCriteria.FACTORY.newInstance();
search.????
List<IBaselineHandle> baselines = wm.findBaselines(search, 0, null);
for (Iterator<IBaselineHandle> baseline = baselines.iterator() ; baseline.hasNext(); ) {
System.out.println("Baseline = ["+baseline.next()+"]");
}
The search doesn't seem to have any understandable methods to do this.
Cheers,
Jas
Hi,
Thanks for replying, so far I've managed to get a workspace manager:
I was hoping to be able to list the streams in this project and then a list of baselines for the streams. But I'm finding it hard to find documentation or samples on how to do this.
Jas
Thanks for replying, so far I've managed to get a workspace manager:
String repositoryURI= "http://xxx.xxx.com:9080/jazz";
String userId= "xxxxx";
String password= "xxxxx";
String projectAreaName= "Test Project";
ITeamRepository teamRepository= TeamPlatform.getTeamRepositoryService().getTeamRepository(repositoryURI);
teamRepository.registerLoginHandler(new LoginHandler(userId, password));
try {
teamRepository.login(null);
} catch (TeamRepositoryException e1) {
System.out.println("Login failed with user "+userId);
return;
}
IWorkspaceManager wm = SCMPlatform.getWorkspaceManager(teamRepository);
I was hoping to be able to list the streams in this project and then a list of baselines for the streams. But I'm finding it hard to find documentation or samples on how to do this.
Jas
When you have the IBaselineConnections, there is a compareTo method that
returns a IChangeHistorySyncReport. That should give you somewhere to
start looking.
On Fri, 27 Nov 2009 11:38:00 -0500, jasuk70
<jdean> wrote:
returns a IChangeHistorySyncReport. That should give you somewhere to
start looking.
On Fri, 27 Nov 2009 11:38:00 -0500, jasuk70
<jdean> wrote:
Hi,
I'm relativity new to Java and quite new to RTC. I am looking for
samples with the Plain Java API to help me try to list files that
have changed in each component between releases (Baselines).
I've looked at the samples that come with the plain Java API's which
explain some of the basics but there doesn't seem to be much that
shows much more detail, especially with the source control side. Is
it possible for someone to post a sample to achieve the above.
Thanks for any help,
Regards,
Jason
page 2of 1 pagesof 2 pages