Available | Feb 1, 2012 |
Due | 11:59pm, Feb 12, 2012 |
Points | 15 |
cd your-341-directory cvs -d /afs/umbc.edu/users/f/r/frey/pub/cs341s12/Proj0 checkout -d MyProj0 your_username
cd MyProj0 ls -- listing your contents cvs remove junk.txt -- removes the file from your repositoryThe only file that should remain is the build.xml file used by ant. This file will be provided by us for all projects and will need to be editted.
cd MyProj0 -- the root of your project directory tree mkdir src -- the root of your source code directory tree mkdir src/proj0 -- a directory for your .java files in the proj0 package mkdir bin -- where the compiler will place your .class files
cd MyProj0/src/proj0 emacs Proj0.javaAfter invoking emacs, or your favorite text editor, write the code for "Hello World" in Proj0.java, save it, and exit the editor. From your MyProj0 directory (where your build.xml file is located), execute the command
ant runThis should cause some (intentional) Ant errors that you will need to fix as we discuss in class. Edit the build.xml file appropriately until this command runs without error. Remember, that Ant requires a very specific heirarchy (see above) in order to execute the compile, run and doc commands. Don't forget about Ant task dependencies as well.