CVS

ITP HELP | RecentChanges | Preferences

CVS

CVS is a great way to work with other people on the same code or just to keep your project organized for yourself on different machines and across versions. It is is installed on the itp server and integrates well into Eclipse.

These instructions are meant to serve for several classes. Please substitute your class name for "ThisClass" in the names below. For instance in Networked Expressions you should look for NetEx_Examples_CVS instead of ThisClass_Examples_CVS as is stated below. For Video Sensing you would use VideoSense_Examples_CVS and VideoSense_Students_CVS.

Class Example CVS Repository

You can get the examples for this class from a CVS repository.
  1. In Eclipse use "File>New>Project" and then pick "CVS>Check Out Project From CVS"
  2. If your Eclipse has not already connnected to this repository (the YourCVSNameHere_CVS does not show up in the list) then you have to choose "Create a New Repository Location." Note this does not make a new repository on the server, it just lets your Eclipse know about an existing one. If it is in the list, pick the existing YourCVSNameHere_CVS and skip the next step.
  3. If this is the first time, fill in itp.nyu.edu for host, /home/dbo3/CVS/YourCVSNameHere_CVS for repository path, your id and password and change connection type to extssh
  4. Choose "Use an Existing" and pick which example project that you want to bring to your machine (probably "Hello World" for starters).
  5. You can probably hit "Finish" now. If you keep pressing "Next" you will have opportunities to call the project something else or put it in a special place on your machine.
  6. After the project has been built on your machine, you need to go into the build path, and remove external libraries that are references particular to my machine (your might have to readd them at the locations on your particular machine). You also might have to go into Project>Properties>J2ME> and set the project to the Wireless toolkit of your preference. Finally you might have to Project>J2ME>Create Package.
  7. Note you will have priveleges only to read these files.
  8. If you want to get the freshest examples use the "Team> Update" menu.

Student Project CVS Repository

You can use another repository that I have set up for sharing your work with me and and with other students.
  1. Create a project in Eclipse.
  2. Right (option) Click on the project and scroll down to "Team > Share Project"
  3. Choose CVS
  4. Check in the syllabus but your CVSName may be something like CompCam_Students_CVS
  5. If your Eclipse has not already connnected to this repository (the YourCVSNameHere_CVS does not show up in the list) then you have to choose "Create a New Repository Location." Note this does not make a new repository on the server, it just lets your Eclipse know about an existing one. Otherwise pick the existing ThisClass_Students_CVS and skip the next step.
  6. If this is the first time, fill in itp.nyu.edu for host, /home/dbo3/CVS/YourCVSNameHere_CVS for repository path, your id and password and change connection type to extssh
  7. Note as an itp student you will have priveleges to read and write these files but so will the other students.
  8. Before you start coding, get the latest files by use the "Team> Update" menu.
  9. After you finish working use the "Team> Commit" menu to put your changes back on the server.

Creating your own CVS Repository

You can create a repository that is totally under your control and in your own server space.
  1. Create a folder on stage to hold your CVS stuff, maybe above your public_html folder so it is not accessable, let's say /home/netid/CVS/myRepositoryName/.
  2. You can make it a CVS repository with this simple command. "cvs -d /home/netid/CVS/myRepositoryName/ init"
  3. You will see that a folder called CVSROOT has been added to your folder
  4. Now follow the steps above but point to your folder instead of /home/dbo3/ThisClass_Students_CVS
  5. If you have a Dreamhost account, you can use these directions to set up a CVS repository on their servers.


ITP HELP | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited March 11, 2007 1:33 pm (diff)
Search:
To EDIT, You have to enter an ADMINISTRATOR password (guess) in Preferences. And refresh