facebook

How to add CVS to existing Struts project? [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #216646 Reply

    isho
    Member

    Here’s what I did:

    1) I checked out an existing project from a CVS repository.
    2) Then I created a new My Eclipse Struts project and imported my files into that project.
    3) then I made a bunch of modifications

    Here are my questions:

    Is there a way to set up CVS using my existing project and existing repository?

    Otherwise is there a way to convert an existing CVS project into a Struts project? and then copy my changes into that project?

    Ishmael

    ps. I should add that all the CVS information is still on the filesystem in the ./CVS directories.

    #216653 Reply

    Riyad Kalla
    Member

    Is there a way to set up CVS using my existing project and existing repository?

    If the project is FROM CVS, then CVS support is already implied. If the project is brand spanking new, just go to Team > Share Project, and import it into a repository.

    Otherwise is there a way to convert an existing CVS project into a Struts project?

    You can check out your project from CVS Into a Web Module Project, then you can Add Struts Capabiltiies to it, walla… all done.

    ps. I should add that all the CVS information is still on the filesystem in the ./CVS directories.

    Then you likely already have this project in CVS, go down to the “team” menu in the right-click context menu from the package explorer, do you have options like “Commit” and “Update”? If so, then this project is already hooked up to CVS.

    #216655 Reply

    isho
    Member

    ps. I should add that all the CVS information is still on the filesystem in the ./CVS directories.

    Then you likely already have this project in CVS, go down to the “team” menu in the right-click context menu from the package explorer, do you have options like “Commit” and “Update”? If so, then this project is already hooked up to CVS.

    Hmmm… no. under team I only see “apply patch.” I can however check things in and out of CVS using an external tool (WinCVS)

    Otherwise is there a way to convert an existing CVS project into a Struts project?

    You can check out your project from CVS Into a Web Module Project, then you can Add Struts Capabiltiies to it, walla… all done.

    Ok. this is what I was trying to do initially, but is there a way to check out code from CVS into an existing project? I could only figure out how to checkout from an exsiting CVS module when creating a new project. But then I had problems converting this project to a struts project. Because I think that the layout of the project in the CVS repository isn’t compatable with MyEclipse. The src directory and lib directory are inside /WEB-INF and the webroot is the root of the cvs project.

    But if I can map MyCVSModule/WEB-INF/src -> MyEclipseProject/src and MyCVSModule/ -> MyEclipseProject/web then that should work.

    Thanks
    Ishmael

    #216656 Reply

    Riyad Kalla
    Member

    but is there a way to check out code from CVS into an existing project?

    When you are checking out a module, use the “Check out into…” feature.

    The src directory and lib directory are inside /WEB-INF and the webroot is the root of the cvs project.

    The src dir as part of the webapp is never a good idea for security reasons, it will probably still work, its just not a great idea.

    #216676 Reply

    isho
    Member

    @support-rkalla wrote:

    but is there a way to check out code from CVS into an existing project?

    When you are checking out a module, use the “Check out into…” feature.

    Thanks. Now how do I change the web-root folder to the folder that I checked out from cvs?

    @support-rkalla wrote:

    The src directory and lib directory are inside /WEB-INF and the webroot is the root of the cvs project.

    The src dir as part of the webapp is never a good idea for security reasons, it will probably still work, its just not a great idea.

    Believe me if I had been the one setting the project up initially I wouldn’t have done it this way.

    #216677 Reply

    isho
    Member

    Nevermind, I figured it out.

    Thanks again.

    #216680 Reply

    Riyad Kalla
    Member

    Nice job figuring it out, sorry for the lapse in reply here I got tied up with something.

    The checking out a project correctly from CVS can be a bit tricky especially when you need to worry about which directory goes where; I hope its smoother for you in the future.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: How to add CVS to existing Struts project? [Closed]

You must be logged in to post in the forum log in