In order for this homework to work right, you need to clean out any old junk from any previous failed attempt to do it. Delete the <WORKSPACE>/HW2-Tools directory if you did a previous checkout. Also delete the ~/.eclipse directory. Note that this will blow away your settings, so you will need to re-import any other projects that you may have been working on.
This is an introduction to Subversion, Ant, and Eclipse. General instructions for accessing our repository are on the class webpage. You will need to consult the Subversion book on the exact syntax of the various svn commands.
I've put a special version of svn in ~coppit/bin. You'll need to update your path to see them. The "special" part of the new svn is that it will set your umask so that you don't damage the permissions of files in the Subversion repository. While we're at it, we'll set up some environment variables for Apache Ant.
On the CS machine, edit your shell startup file so that it sets the PATH and ANT_HOME environment variables. The file you need to edit depends on your shell. It's most likely ~/.cshrc. If so, here's what you need to add:
setenv ANT_HOME /home/f85/coppit/classes/csci435/ant
set path=(/home/f85/coppit/bin $ANT_HOME/bin $path)
Log out and log back in to make the changes go into effect. If it worked,
echo $ANT_HOME
echo $PATH
will display something reasonable. The exact syntax of the set commands will depend on your shell. If you have any problems, help each other on the forums.
If you've got your own programming environment at home, you need to install Eclipse, Subclipse, and Ant. To install subclipse, go to Help → Software Updates → Find and Install in Eclipse, add the remote update site http://subclipse.tigris.org/update, then install the package. Their website isn't the most responsive in the world, so you may have to try a couple times. Also see the Subclipse website at http://subclipse.tigris.org for other installation options.
Get Apache Ant from http://ant.apache.org/. Installation is easy.
Another issue: svn+ssh in subclipse will fail if you haven't previously stored the host key. Be sure you ssh to the machine at least once to store the key before you try to add the repository in subclipse.
Eclipse is under /usr/local/eclipse. Techie has installed Subclipse already. A user's manual for Subclipse is at http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=1732.
You must do the following step by 8am Friday.
Check out the "HW2-Tools" project from the repository.
Between 8am and 10am on Friday, I will make a change to the files so that the assignment will work right for the first person to do the remainder of the assignment.
You must do the following steps after 10am Friday.
When you compiled the code in the previous step, Eclipse used its built-in build manager. Now we'll set up Eclipse to use an Ant build.xml file that we'll distribute with our code. That way you don't have to use Eclipse to build the code.
If you don't like Eclipse, you can still work on the project as long as you have subversion and Ant. You should have ant working properly after doing the setup step above.
75 points total
Back to CSci 435/535 Homepage.
Last changed February 03 2006 10:00:46.
David Coppit,
coppit@cs.wm.edu
There have been 1221257 hits since Thu Jun 9 14:49:55 2005