Download files from changesets
Hi,
I would like to download the files in changesets that were checked latest during my build. What are the ways to acheive this. Thanks, Satish. |
4 answers
Satish,
simply use the build's snapshot (which gets automatically created) to create --> new Repository Workspace, then load the workspace. If you want to load single files in a recent change set, display the change set in e.g. change explorer, select the file(s) and --> load. For different scenarios, e.g. loading folders/files of a set of change sets you would need to code a script to do it. Can you please detail your use case some more? Depending on what you want to achieve (e.g. just "see" the files and its contents can be done without explicitely loading it to disk) there might be different ways. gg, Arne |
Hi,
Thanks for the reply Here are the steps that I want to achieve 1) During build, I would like to download only changesets that were delivered from previous builld rather complete source base 2) In the same build process once downloaded I would like to push those files to a remote server. I want to achieve it using ant tasks instead of the API. Is it possible?? Thanks, Satish. |
Satish,
I think I understand your use case: instead of fully loading the build workspace into a clean directory for each build you would like an incremental load which takes into account only the diff of change sets since last build. Notice that change sets can also include deletions, renames or moves. An incremental load would have to know how to deal with these. Currently there is no ant task in the build toolkit which offers incremental load. However, writing a custom ant task is fairly easy. If you have Java and RTC API skills you can do it yourself following the guidelines in: Adding a custom ant task Or you can have somebody write the ant task for you, drop it into the build toolkit folder and simply use it from your build.xml gg, Arne |
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.