CIS280/F06/Software
From MCIS Wiki
Contents |
Installation
You'll need the following:
- Eclipse: take this from http://www.easyeclipse.org/site/distributions/desktop-java.html
- Darcs and remote access software: Media:280software.zip - place all of these files in Window/System32
Keys
You need to generate a ONE key and get the MCIS server to allow you in with this key (that's the .ssh stuff). The .ppk file needs to be on every computer you'll use. Before you can get at our source code repository, you'll need to run pageant. On a normal system, place pageant in your startup folder. Before going to the repository, open pageant (the computer wearing a hat!) from the tray and click "add key" and select your ppk file. If you're on a lab machine we have a "key.bat" file to run that does the same thing.
You'll can check your key setup by using putty go to mcis.western.edu - if it asks for a password you're key doesn't work.
Pulling the Repository
You'll have to use the command prompt - run "cmd" to get a command window. Use "cd" to get to the folder where your project is stored. If you need to switch drives, just type the drive letter (like C:) to switch drives.
When you first start out, type
darcs get jpeterson@mcis.western.edu:repos/280
to pull in the repository. Except you're not jpeterson so use your mcis login instead. Once you do this it remembers who you are and where the repository is.
If you don't have your pageant stuff running, you can get from the web-based interface:
darcs get http://mcis.western.edu/repos/280
When you get this way, you can't push patches though.
Using Eclipse
Create a new project and tell it that the source code is whatever folder you placed the repository into. You're now ready to use eclipse as you normally would.
Using the Repository
Darcs is a program that allows you to move your code around or share it with others. It does a lot of things but we'll only need a few of them.
I suggest you keep a command window open to do repository access at all times. This has to be inside the folder where your project is.
Pulling Changes
To update your files with changes made by others, do
darcs pull
Creating Patches
If you want to let others see you changes, do the following:
darcs record
This creates a "patch". You should look at all of the updates and make sure they are ones you want others to see.
darcs push
This updates the copy of the code on the server so that others will see your patches.
Adding Files
A file that's under darcs control is automatically made part of every patch. If you add a new .java to your project (or any other kind of file), you have to tell Darcs that this file is under its control. Just do
darcs add file.java
