CSE 70, Fall 2008
Software Engineering
Lab 2 Instructions
Remember to run prep cs70f before starting
to get the programs you need in your path.
Part 1: Use svn to check out a project from a repository.
- View
svn's built-in help by running svn help checkout.
- Check out the project by running svn co http://cse70.ucsd.edu/svn/project/branches/lab2
- Change your working directory to the new
lab2 directory.
- Create a
README file (using your favorite editor).
- add the file
- modify an existing file
- edit the first line of build.xml
- see the changes
- svn status
- svn diff build.xml
- commit the changes (won't work)
Part 2: Use Ant to build the project.
- take a look at build.xml
- compile and jar up the project
- try the application
- java -jar jar/IRCClient.jar
Part 3: Use JUnit to run the tests in the project.
- compile the tests
- set the classpath (e.g. if you use bash do the following)
- export CLASSPATH=`cat classpath.txt`
- Note: In the command above, those are backticks not apostrophes!
- run the tests
- java org.junit.runner.JUnitCore edu.ucsd.cse70.ircclient.IRCClientTest
- java org.junit.runner.JUnitCore edu.ucsd.cse70.ircclient.IRCMessageTest
- run the tests using Ant
- clean up