How to use Eclipse with existing CVS projects?

Discussion in 'Java' started by Mark Boon, Dec 3, 2003.

  1. Mark Boon

    Mark Boon Guest

    Recently I've started to use Eclipse as my Java IDE and like it a lot.
    However, it still mystifies me how it actually works together with my
    CVS repository.

    In my repository I have a structure like the following:


    Each project has a large number of files and sub-directories in them.
    I make a project in Eclipse for say project1, choose project1/source
    and project1/classes as my repsective source-folder and output folder.

    Now I do 'Share Project' and I need to give a CVS module. If I put in
    "source/company1/project1" then Eclipse puts it straight in the
    top-level directory, ignoring the fact that I set my source-folder to
    "source". And it then generates millions or build-errors because the
    package doesn't match the directory structure.

    I've tried lots of other things, too many to list here, but the only
    way I got it to kind of work is using WinCVS to checkout my files in
    the proper directory (workspace/project1/source/company1/project1/...)
    structure. Eclipse then seems to be able to update and commit changes,
    but synchronization doesn't have a clue what's going on and gives
    errors in the 'Incoming' mode, only saying "An error occured while
    synchronizing with remote contents". Also, when I 'update' my project,
    it not only retrieves source for project1, but project2 and 3 as well,
    which is very annoying.

    I've tried to find documentation on how to use CVS with Eclipse, but
    so far found nothing that would help me with this problem.

    So I would be very grateful if someone could give me a pointer to some
    good documentation on how to combine Eclipse with an existing
    repository. Or even better, maybe someone can explain me how to use
    Eclipse in such a way with the given repository without having to fall
    back on external CVS tools.

    Mark Boon
    Mark Boon, Dec 3, 2003
    1. Advertisements

  2. Larry Coon

    Larry Coon Guest

    Mark Boon wrote:

    > I've tried to find documentation on how to use CVS with Eclipse, but
    > so far found nothing that would help me with this problem.

    Three comments:

    1. You're off-topic here, so the help you get will be limited.
    But if you go to you can find out how to access
    on-topic newsgroups.

    2. I'm an expert in neither Eclipse nor CVS, but I just go to
    the CVS perspective, CVS Repositories view, navigate to
    what I want to check out, right click, and select "Check out
    as project."

    3. The book Eclipse in Action has a chapter on using Eclipse
    with CVS.

    Larry Coon, Dec 3, 2003
    1. Advertisements

  3. From the repository explorer, there is a "Checkout as..." context menu
    option. If you choose that, then you can specify the target directory
    inside your project.

    So for example I created an Eclipse project foo and checked out the
    CVS stuff into the subdir foo/TheProjectName. Now I can add subdirs
    of foo/TheProjectName to the source path and all kinds of things. (I
    think I had to remove the default source folder from the source path,
    though. I don't remember exactly.)

    Kai Grossjohann, Dec 3, 2003
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John
    Uwe Seimet
    Jul 22, 2005
  2. Replies:
    Timo Stamm
    Feb 24, 2006
  3. ddog
    Jason Whaley
    Aug 4, 2007
  4. Replies:
    Aug 31, 2007
  5. David Ross
    Nicholas Van Weerdenburg
    Dec 5, 2004

Share This Page