It's all about the answers!

Ask a question

moving root project one level lower inside a component


radu borsaru (4485) | asked Oct 18 '10, 1:00 a.m.
Hi,

I have a component that has only one eclipse project as root folder. I want to move this project one level lower so I can have multiple projects in the same component.
Ex. comp1 -->src
---------------->headers
---------------->readme.txt
----------------->.project
To become:
comp1 -->proj_1
------------------------->src
------------------------>headers
------------------------>readme.txt
------------------------>.project
------------->proj_2
------------------------>another_readme.txt
------------------------>.project
I want to keep all the history of the component.

Is this possible in RTC 2.0?

Regards,
Borra.

3 answers



permanent link
Geoffrey Clemm (30.0k23035) | answered Oct 19 '10, 12:56 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Just create a new folder in comp1, named "proj_1", and move all of the
other files and folders under comp1 under proj_1. Then check in all
your changes, and unload comp1. Then load comp1 (using the default
"find and load eclipse projects").

And there you are.

Note: I know this works in RTC-3.0 ... but I'm pretty sure this just
works in RTC-2.0 as well.

Cheers,
Geoff

On 10/18/2010 1:07 AM, borra wrote:
Hi,

I have a component that has only one eclipse project as root folder. I
want to move this project one level lower so I can have multiple
projects in the same component.
Ex. comp1 -->src
---------------->headers
---------------->readme.txt
----------------->.project
To become:
comp1 -->proj_1
------------------------->src
------------------------>headers
------------------------>readme.txt
------------------------>.project
------------->proj_2
------------------------>another_readme.txt
------------------------>.project
I want to keep all the history of the component.

Is this possible in RTC 2.0?

Regards,
Borra.

permanent link
radu borsaru (4485) | answered Oct 19 '10, 7:52 p.m.
Thanks Geoff.

I have tried method before posting my question, but I couldn't figure out how to move he .project file inside the new proj_1 folder. After your answer I got the answer and I have moved the file on filesystem level and not from inside the Eclipse client.
Everything went fine, exactly how you've described it.

Thanks,
Borra.

permanent link
Geoffrey Clemm (30.0k23035) | answered Oct 19 '10, 10:07 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Good to hear. I'm guessing that your problem in your Eclipse client is
that you neglected to remove the standard "filter" in the package
explorer that hides the .project files ... if you remove that rule from
the filter, you'll be able to see the .project file from within Eclipse,
and just move it like any other file (with drag-n-drop, for example).

Cheers,
Geoff

On 10/19/2010 7:53 PM, borra wrote:
Thanks Geoff.

I have tried method before posting my question, but I couldn't figure
out how to move he .project file inside the new proj_1 folder. After
your answer I got the answer and I have moved the file on filesystem
level and not from inside the Eclipse client.
Everything went fine, exactly how you've described it.

Thanks,
Borra.

Your answer


Register or to post your answer.