How to fix a eclipse project that was shared without the root folder?
Hi, we have a situation where a developer managed to somehow share a project in RTC without the root project folder. So the component repository files look like this:
/.settings /lib /src .classpath .project Note that the .project file has the proper project name but the root project folder is not in the repository. This causes issues when the code is checked out because there is no project folder so one must be chosen during import to your workspace. We would like to fix this by sharing the root project folder and moving the sub items back within the project folder in the repository but we have not been able to find a way. Note that this has been like this for some time as well and we would like to preserve the history of these files if at all possible. We tried sharing a new project in the component thinking we could then move the files into the new project (once shared) and that this refactoring would clean it up and preserve history but for whatever reason the tool will not allow us to share any new projects in this component. We considered creating a new component and using "Move in repository" to try and address but we are not sure if this will allow us to move into the new folder and if it will keep the history....and we really don't to blindly do something that could break what we have. Note we are using RSA/RAD with RTC 5 but when the code was original checked in we were using RTC 3.12. Any suggestions would be greatly appreciated! |
2 answers
Hi William,
To achieve "We would like to fix this by sharing the root project folder and moving the sub items back within the project folder in the repository", you can try: 1. In Eclipse, use "Load as" option to load the component. This will create a component root directory under the sandbox 2. In the component root directory, create a new project folder. Check-in the change. 3. Close Eclipse client. 4. Open command line, under the sandbox, using "scm move path" command to move the sub items to the project folder. For example: cd <sandbox>/<component-root-dir> scm move path -r <repository> lib project-root/lib (Refer to http://www-01.ibm.com/support/knowledgecenter/SSYMRC_5.0.0/com.ibm.team.scm.doc/topics/move_path.html) 5. Then you can launch RTC Eclipse again, and check-in the changes from Pending Changes view. In this way the history of all files can be preserved. Hope above is helpful. Comments
William Foster
commented Mar 27 '15, 12:29 p.m.
Hi Lilly, thank you for the suggestion. The scm Move command sounds perfect but I am stuck before that step.
Lily Wang
commented Apr 08 '15, 10:50 p.m.
Hi William,
|
Scenario:
Desiderata:
Component A
How to get it:
|
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.