how to checkin project delete via scm cli
Hello,
we're using RTC 3.0.1.2 on a linux box and try to delete projects from components via cli. In the Info Center we didn't find any cli command to do the "delete from Repository", which is available in the eclipse GUI client. Example: > scm status How to checkin the Unresolved project delete since the checkin cli command expects a Path which is not available since the project is going to be deleted? Any help is much appreciated. kind regards Mike |
6 answers
Ralph Schoon (63.5k●3●36●46)
| answered Feb 16 '12, 2:38 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi,
have looked into the library? This article might help: https://jazz.net/library/article/620 |
Hi Ralph,
I know that article quit good. :-) The problem here is, that there seem to be no operation for the SCM CLI available to delete a project from a component. In the eclipse Client there is a special GUI Action available to delete a project from a component:(right click on eclipse project) "Team > Delete from Repository" The scm checkin command expects a path to the ressource which I want to delete. Since there is no path to the deleted project the command cannot be issued. Cheers Mike |
Ralph Schoon (63.5k●3●36●46)
| answered Feb 17 '12, 7:33 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Mike,
you got me here. I just tried a bit and even tried to delete the project from disk and check in the changes. In the UI then the workspace considers the component to be unloaded. With all I tried I left over at least a root folder that would recreate a project on load. The SCM commandline is getting better, but it is not complete, I guess. I would suggest you create an enhancement request for this. |
Can you checkin the parent directory? That's how to delete a file deeper in the hierarchy (took me forever to work that out).
Cheers, Tim |
Ralph Schoon (63.5k●3●36●46)
| answered Feb 21 '12, 2:31 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Tim,
I did not try with the CLI, but with the client. If the project folder is deleted, the client seem to assume the component is not loaded. I think there is a substantial difference how the project folder is handled compared to other files/folders.. |
With version 5.0.2, I was able to successfully run:
rm -rf dir_to_delete lscm checkin dir_to_delete lscm cs comment ... lscm deliver Mind you, in order to be able to carry out similar operations in two different components, I had to load each component in its own sandbox. The RTC CLI appears unable to cope with changes being made to more than one component in a sandbox. |
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.