It's all about the answers!

Ask a question

How to handle files not part of an eclipse project?


Jirong Hu (1.5k9295258) | asked Dec 06 '11, 12:20 p.m.
Hi All

Look at this. The project has this structure in ClearCase. In the way below, I dump the structure into one component and load the root of the component as an eclipse project into the project explorer. This way, developers see the exact some structure in project explorer.

But actually each of EJBServer and webclient folder is an eclipse project (there is a .project) in the root of EJBServer folder.

1. If we load the whole file structure like this. EJBServer and webclient is not showing as a java project in eclipse IDE, not good for developers to do development, right?

2. If I load individual project such EJBServer and webclient into project explorer, then how can I load other files not part of an eclipse project? e.g. no matter how I load, these files in the root such as CCC-version.txt, won't even be appeared in the sandbox. Then there is no way you can modify them. This is not like ClearCase.

http://i43.tinypic.com/2s0mwy1.png

4 answers



permanent link
Geoffrey Clemm (30.1k33035) | answered Dec 06 '11, 1:38 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
This is just a question about Eclipse, and doesn't have anything to do
with ClearCase or RTC-SCM, does it? Neither ClearCase or RTC-SCM
really care whether you have .project files, and where they are located,
but Eclipse cares. Or am I missing something?

Cheers,
Geoff

On 12/6/2011 12:23 PM, hujirong wrote:
Hi All

Look at this. The project has this structure in ClearCase. In the way
below, I dump the structure into one component and load the root of
the component as an eclipse project into the project explorer. This
way, developers see the exact some structure in project explorer.

But actually each of EJBServer and webclient folder is an eclipse
project (there is a .project) in the root of EJBServer folder.

1. If we load the whole file structure like this. EJBServer and
webclient is not showing as a java project in eclipse IDE, not good
for developers to do development, right?

2. If I load individual project such EJBServer and webclient into
project explorer, then how can I load other files not part of an
eclipse project? e.g. no matter how I load, these files in the root
such as CCC-version.txt, won't even be appeared in the sandbox. Then
there is no way you can modify them. This is not like ClearCase.

http://i43.tinypic.com/2s0mwy1.png

permanent link
Jirong Hu (1.5k9295258) | answered Dec 07 '11, 10:23 a.m.
This is just a question about Eclipse, and doesn't have anything to do
with ClearCase or RTC-SCM, does it? Neither ClearCase or RTC-SCM
really care whether you have .project files, and where they are located,
but Eclipse cares. Or am I missing something?

Cheers,
Geoff


You are right. But the key issue is in RTC, e.g. these files in the root is not loaded into the sandbox, using the 2nd approach. Means you can't modify these files. While in ClearCase, at least they are in the view.

Jirong

permanent link
David Lafreniere (4.8k7) | answered Dec 07 '11, 10:59 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

1. If we load the whole file structure like this. EJBServer and webclient is not showing as a java project in eclipse IDE, not good for developers to do development, right?


In this scenario 1, I see that everything is shared in RTC correctly and that Eclipse has the parent Eclipse project loaded (ex: OASA2). Could you not just use the normal Eclipse File --> Import to add any Eclipse projects you want to have them show up as Eclipse projects in the Package Explorer? Ex, do that for EJBServer and webclient.

permanent link
Geoffrey Clemm (30.1k33035) | answered Dec 07 '11, 1:38 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
You can use RTC-SCM to load the same tree as appears in the ClearCase
view. Use the Advanced Option: "Load the selected folders but do not
create Eclipse projects".

Note: I agree that it is a hassle in Eclipse to manipulate files that
live "above" our "outside of" Eclipse projects, but that is true whether
you are using ClearCase or RTC-SCM (and whatever you are doing in
ClearCase to deal with this issue, you can do the same thing with RTC-SCM).

Cheers,
Geoff

On 12/7/2011 10:23 AM, hujirong wrote:
gmclemmwrote:
This is just a question about Eclipse, and doesn't have anything to
do
with ClearCase or RTC-SCM, does it? Neither ClearCase or RTC-SCM
really care whether you have .project files, and where they are
located,
but Eclipse cares. Or am I missing something?

Cheers,
Geoff


You are right. But the key issue is in RTC, e.g. these files in the
root is not loaded into the sandbox, using the 2nd approach. Means
you can't modify these files. While in ClearCase, at least they are
in the view.

Jirong

Your answer


Register or to post 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.