It's all about the answers!

Ask a question

Loading a complete java project into RTC


Sean Burke (3729108175) | asked Feb 28 '13, 2:19 a.m.
 If a user creates a java project and delivers to a stream and another user comes and accepts incoming changes from the pending changes view it appears only the source is brought into the the sandbox, not the library files.  When you load from the repository workspace you have an option to load eclipse projects and this brings in everything.  So tell me if this is correct,  in order to initially bring in an eclipse java project it is necessary to load it from the repository workspace and select the option to load all eclipse projects?  Am understanding this correctly?

Accepted answer


permanent link
Scott Cowan (966310) | answered Feb 28 '13, 11:12 a.m.
JAZZ DEVELOPER
Hi Sean,

There are many ways to load from a repository workspace into a sandbox and they are all explained in these two articles.  Pick the article that is applicable to your version.

https://jazz.net/library/article/192 (all versions before v4.0)
https://jazz.net/library/article/1016 (v4.0)

The option "Find and load Eclipse projects" is generally the easiest way, but there are exceptions.

Scott
Sean Burke selected this answer as the correct answer

2 other answers



permanent link
Andrew Niefer (6385) | answered Feb 28 '13, 11:21 a.m.
JAZZ DEVELOPER
When you look at an Eclipse project in the package explorer, you are seeing a number of things which are actually derived from your settings and environment and aren't actual files on disk.

If you open the Eclipse "Navigator" view (Main menu > Window > Show View > Other ...  > General > Navigator), and look at your project there, you will see the actual files that make up the project on disk that will be shared to source control.

When you select "load eclipse projects" then Eclipse starts managing the project and sets up those Libraries based on your target platform/build settings.

Note that there are also Eclipse Preferences (Main Menu > Window > Preferences > Team > Ignored Resources) which specify which files on disk should not be shared to source control.



permanent link
Geoffrey Clemm (29.2k23035) | answered Feb 28 '13, 5:06 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
There are two distinct operations:
- "loading" the files from the RTC repository workspace into the file area on local disk (the RTC "sandbox")
- "importing" the files on disk into the Eclipse workspace as an Eclipse project.
Some of the RTC operations (such as "find and load eclipse projects") do both of these operations.   The other RTC load operations (the ones that don't mention Eclipse projects) just do the load and do not import.  If you have used the second kind of load operation (the "load only"), you can then use the normal Eclipse "Import -> project" operation to subsequently perform the import.

To avoid confusion, note that there are two very different objects called a "workspace":
- an "RTC repository workspace", which is data stored on the RTC server, and
- an "Eclipse workspace", which is an Eclipse instance that has a directory on local disk where its metadata is stored.

Your answer


Register or to post your answer.