This article covers the basics of starting a new eclipse project by checking out a CVS Module.
Members of the LAMPSig 2.0 Class should follow along.
This article covers using Eclipse to start a new project based on files in a cvs repository. Eclipse makes this process highly transparent. Members of the 2.0 class can use this method to get files from the Lampsig class cvs repository, and make changes or additions to the library.
This assumes that you have an account on the cvs repository machine. You will need to have an account set up for you by David Rolston. Your cvs repository account is different than your Lampsig server account. The repository runs on an entirely different machine.
[b]Step 1[/b]
With Eclipse started, use the File | New | Project Menu item.
[b]Step 2[/b]
You will see a dialogue box similar to this one.
[b]Step 3[/b]
Use the Next button and choose your repository. Eclipse remembers any repositories you've configured, so that you can use them again, but initially you will need to setup a new repository configuration.
[b]Step 4[/b]
There are a number of different ways cvs can be configured. Eclipse supports most if not all of these methods, the most common being either ext or pserver. The Lampsig cvs repository requires that each user have their own account on the cvs server. When connecting, you'll use the extssh method, which uses ssh to make a secure connection.
Fill out the connection dialogue using these values:
[i]Host:[/i] lampsigcvs.gizmola.com
[i]Repository Path:[/i] /repository
[i]User & Password[/i] Use the username and password configured for you by David Rolston
[i]Connection Type:[/i] extssh
Leave the rest of the settings in their default state. You can have eclipse save your password for you, although others using your machine would then be able to access the repository as you, were they to access your machine without your knowledge.
Once you hit Next, if it's the first time you have connected to the repository, you're likely to see a message like this one. This is a function of ssh's cryptographic layer.
It's safe to go ahead and hit Yes. If you don't hit Yes your connection will be aborted, and you'll have to start the process over.
[b]Step 5[/b]
On the last Team dialogue, you should set the radio button to be "Use an existing module". If your connection is successful you will see a list of available modules. Choose the lampsiglib module, and click the "Done" button.
From there you'll be prompted on what type of project to create. You have your option of configuring your checkout as a php project or simply to create the cvs project inside your workspace. There's really no reason not to go ahead and check the project out in the worspace, as you can always switch to the php perspective once you're looking at your php project.
Once you've gotten your project checked out you'll see any files or folders contained within that module. Use eclipse to view, diff or edit the files as you like. Right clicking on any file in the project will provide access to the team menu, which will enable you to commit files you've changed, or view information like the revision history. This menu also will allow you to "compare" the current version in your project with any prior revision.