How do I set the Change Set Owner using the Plain Java API?
![]() Hi,
I have written a Java app to import source code with version history using the Plain Java API.
I can set the file version date using the IFileItem.setFileTimestamp(date) but the Change Set owner and file modified by is being set to the logged in user.
Is it possible to set the Change Set's owner using the Plain Java API?
I found the internal method com.ibm.team.scm.common.internal.ChangeSet.setOwner(IContributorHandle value) but how do I convert my IChangeSet into a ChangeSet object?
I also assume that the file version's Modified By is just a reference to the Change Set's owner?
Thank you,
Sudheer
|
2 answers
![]() After a bit more investigation with the Plain Java API, I came across this method:
IWorkspaceConnectionInteropAdapter.importChangeSet( IComponentHandle componentHandle, String changeSetComment, Collection configOps, long creationTime, IContributorHandle contributor, IProgressMonitor monitor)This is exactly what I was looking for, and works perfectly for importing my source code history into RTC. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.