Two different CVS repositories for the same project [message #198735] |
Fri, 09 March 2007 05:38  |
Eclipse User |
|
|
|
Originally posted by: user.domain.invalid
I have a sort of "strange" question :-) , I would like to have a
Java-Eclipse project with two different CVS repositories. The setup is
the following:
Repository A ---> my local machine (only update)
Repository B <--> my local machine (both update and commit)
Rep A contains (somewhere in the wide world) an open source project, of
which I always want to have the latest version.
Rep B is somewhere on an internal server in our shop and should host my
changes.
Could somebody say how one can handle this constellation with the
Eclipse CVS capacity?
Cheers
Amir
P.S.: Thanks for Hendrik for the translation of the original message
from german to english, as the message was firstly posted in a german
forum with no success.
|
|
|
Re: Two different CVS repositories for the same project [message #198760 is a reply to message #198735] |
Fri, 09 March 2007 11:48  |
Eclipse User |
|
|
|
Originally posted by: eclipse5.rizzoweb.com
user@domain.invalid wrote:
> I have a sort of "strange" question :-) , I would like to have a
> Java-Eclipse project with two different CVS repositories. The setup is
> the following:
>
> Repository A ---> my local machine (only update)
> Repository B <--> my local machine (both update and commit)
>
> Rep A contains (somewhere in the wide world) an open source project, of
> which I always want to have the latest version.
>
> Rep B is somewhere on an internal server in our shop and should host my
> changes.
I see two options:
A) use a separate Eclipse Project for the open-source project, and have
your "internal" project depend on that one.
B) You can check out from multiple repositories into a single Eclipse
Project. You just have to keep them in separate directories within the
Eclipse project. For example:
YourProjectName/
.project
.classpath
OpenSourceProjectName/
<files from Repository A>
Internal/
<files from Repository B>
When you do Team operations on the whole project it will understand to
look at both repositories appropriately.
My personal preference is for option A - I like to keep projects focused
and single-minded whenever possible, like classes and methods.
Hope this helps,
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.08611 seconds