For this course, we need a mechanism that allow us to achieve the following goals:
We will be using CVS to achieve the above goals. CVS is a utility used to keep track of the history of files that you (and possibly other people) are utilizing.
In CVS, a repository is a location where files are stored. For this course, we have set up a repository for each student from where all files associated with a project will reside. It is this CVS–managed repository that allows us to achieve the goals described above. When files associated with a project are distributed in the course, they are distributed by placing copies of the files in each student's repository. Students can then retrieve these files by completing a process called “check out.” Students can work on their code and save the files in the repository by completing a process called “submit.” The repository of each student resides in a computer system we call grace.umd.edu, which will be accessed via a network connection. That means that if you work at home and save your files in the repository you will have access to those files from a computer at school.
In order to have access to your repository, you need to set up a repository in Eclipse. This is a process you only need to do once. After this process have been completed, you will be able to manage all the projects in the repository.
Select Window → Perspective → Open Perspective → Other → CVS Repository Exploring. You will see the following window:
In order to set up a repository you need an account in the computer system (host) where your repository resides. Ask your instructor for information regarding how to obtain the CVS class account.
To “connect” to your repository you need to create a new repository location by right clicking on the white empty pane that can be found under the title "CVS Repositories" and selecting New → Repository Location…. Once you have completed your selection a dialog will come up that will let you define a new CVS repository. The following is an example on how to connect to your repository assuming the following information (remember, this is not the information you will use; this is just an example).
nelsonp
, but for you it should be your directory
id/account id.
grace.umd.edu
/afs/glue/class/fall2016/cmsc/132/0401/student/nelsonp
nelsonp
*********
While creating the repository, check the “Save Password” option so that you do not have to provide the password every time you access the repository. You must complete the above process only once in the semester from any machine you are planning to run Eclipse. Click on Finish, and you should get a line in that pane that says something like:
::extssh:nelsonp@grace.umd.edu:/afs/glue/ ...
p1
you should see something similar to the following:If you want to transfer all the files associated with a project:
p1
in the above screenshot) you are interested in, and select
“Check Out.”If you have downloaded and installed all the necessary Eclipse plugins then you can submit your project by switching to the Java perspective, right clicking on your project folder in the package explorer, and selecting “Submit Project…” from the context menu.
Some computers are having problems using IPV6. For example, in Mac computers some students reported that after trying to connect to CVS, they got an error similar to:
Error validating location: For input string: "558:feed::1"
If you get this error set IPV6 wifi off (and only use IPV4) by typing in a terminal window the command:
networksetup -setv6off Wi-Fi
We want to thank Angelisa Plane for providing this information.