download changesets of a workitem via JAVA APIs
Is it possible to download the changesets of a workitem from the RTC server into local PC using java API's ?
|
One answer
Using plain java API, once you got a IChangeSet cs object,
for (Object o: cs.changes()) {
IVersionableHandle afterHandle = change.afterState(); IVersionable afterVersionable = wm.versionableManager().fetchCompleteState(afterHandle, new SysoutProgressMonitor()); IFileItem fileAfter = (IFileItem) afterVersionable; string outputDir= "C:/temp";
PrintWriter afterOnDisk = new PrintWriter(outputDir+"after", "UTF-8");
[.....] }
|
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.