Tuesday, March 18, 2008

Get the Code(updated)!!!

This guide is only for people who use Eclipse. For those of you who use something else, you will have to find directions of how to add a cvs repository to your workspace. If you need help, just email me. I've tested this on a mac (leopard), windows (vista), ubuntu (gutsy gibbon).

1. Make sure you have Eclipse installed (http://www.eclipse.org)
2. Make sure you have at least JDK 5.0 installed on your computer. (http://java.sun.com/javase/)
3. In Eclipse, File->Import... Then choose CVS->Projects from CVS. Click next.
4. A screen may show up that lets you choose to create a new repository or use an existing one if you have one already. Choose to create a new one. Click next.
5. Fill in the form with the following information:

host: fathead.mit.edu
Repository Path: /school
User: <athena-user-name>
Password:
<athena-user-name> (this can be changed if you want it to, just let me know)
Connection type: pserver
Use Default port should be selected

Once filled in, click next.

6. Select "Use an existing module". Select picasso and select finish.

You should now have a project in your workspace called picasso There should be no errors in the project but maybe some warnings.

Now you can run the application. I like using the view Package Explorer (Window->Show View->Package Explorer). Navigate to active->application->RunMe. Right click it and select Run As->Java Application.

There should be a pop up window that asks you use which? and num windows. If not, then something went wrong, so email me.

Another note. Si and I will be working on the core of the system and will be updating the system as the term continues. So because of this, you're going to want to "update" the code on your computer to reflect our changes as well as "commit" your changes to be reflected on other peoples computers. When you are done working on something and are ready to put it on the system, do the following:

1. In the Package Explorer view, right click on the project (picasso)->Team->Update. This should update your code on your computer with the changes that others have made.

To "commit" your code so that it is reflected on the server:
1. In the Package Explorer view, right click on what you want to add to the server->Team->Commit. Follow the instructions. This should add the changes you made to the server.

Anyways, enjoy. If you have any problems getting it running, let me know and I'll try to help you out. Si and I will be posting tutorials as we get them written.
Important Notice:
Please do not change the files in the "dev" folder. These are changed daily by Si and I. Most of everyones contribution will be in the "active" folder.

No comments: