It's all about the answers!

Ask a question

Can eclipse and RTC support this?


Brian Gillan (3215330) | asked Dec 11 '08, 5:18 p.m.
We have multiple projects which share some common code. In PVCS this is
done with a linking mechanism similar to symbolic linking in unix. So a
directory structure such as:
/projcommon/folder1/commonfolder1/commonfolder2/common.java
/project1/folder1/commonfolder1/commonfolder2
/project2/folder1/commonfolder1/commonfolder2

common.java is the same file whether referenced through
/project1/folder1/commonfolder1/commonfolder2 or
/project2/folder1/commonfolder1/commonfolder2.

Can this be achieved using Eclipse and RTC?

Thanks, Brian

6 answers



permanent link
Simon Archer (2761) | answered Dec 12 '08, 4:08 p.m.
Brian

I do not believe that this sort of linking is supported by Eclipse or
RTC. But Eclipse does allow projects to depend upon each other, so you
likely can achieve what you are trying to do.

What are you building? A regular Java application, or an OSGi/Eclipse
application composed of bundles?

Please tell me more.

Simon

Brian Gillan wrote:
We have multiple projects which share some common code. In PVCS this is
done with a linking mechanism similar to symbolic linking in unix. So a
directory structure such as:
/projcommon/folder1/commonfolder1/commonfolder2/common.java
/project1/folder1/commonfolder1/commonfolder2
/project2/folder1/commonfolder1/commonfolder2

common.java is the same file whether referenced through
/project1/folder1/commonfolder1/commonfolder2 or
/project2/folder1/commonfolder1/commonfolder2.

Can this be achieved using Eclipse and RTC?

Thanks, Brian


--
Simon Archer
Jazz Server Team

permanent link
Brian Gillan (3215330) | answered Dec 17 '08, 10:48 p.m.
We're building a regular Java application. So, I essentially want to be
able to load a workspace where the high level folder names overlap
between my common component and the components that want to share it.

Brian

permanent link
Anuerin Diaz (4112517) | answered Dec 18 '08, 1:50 a.m.
wouldn't it be easier to move the common/shared classes in its own project so they can be added as a dependency project or exported into a jar file? or are there more items that increases the complexity of this route?

ciao!

permanent link
Rolf Nelson (617159) | answered May 25 '10, 2:45 p.m.
JAZZ DEVELOPER
wouldn't it be easier to move the common/shared classes in its own project so they can be added as a dependency project or exported into a jar file? or are there more items that increases the complexity of this route?

ciao!


Symbolic links are now supported in RTC 2.0.0.2 in the UI and the command line interface (cli)

From the cli,

ln -s ./v2.0.0.2/readme.txt readme.txt

Changes to symbolic links are tracked, just like directory or file name changes.

permanent link
Victor Campbell (3502618) | answered May 25 '10, 4:36 p.m.
We use symbolic links in ClearCase on Windows so many projects can link to a single copy of a library file stored in a shared component. I believe the symbolic link functionality in RTC 2.0.0.2 refers only to symbolic links in UNIX, and not the ability to share files across projects and components.

permanent link
John Camelon (1.7k14) | answered May 26 '10, 9:42 a.m.
JAZZ DEVELOPER
We use symbolic links in ClearCase on Windows so many projects can link to a single copy of a library file stored in a shared component. I believe the symbolic link functionality in RTC 2.0.0.2 refers only to symbolic links in UNIX, and not the ability to share files across projects and components.


We are working at pushing through the support for Vista/Windows 7 links in Eclipse & RTC for 3.0. But you are correct, we deal only with mapping Links to links on disk, and tracking the changes appropriately.

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.