13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

8.2 Source C<strong>on</strong>trol: Whys and Hows197mydirprev coolj miscFetchURL.java Sprit.java Tux.javaFigure 8.1 A sample directory structure prior to importThis will create a module named coolj in the repository, whose c<strong>on</strong>tentsare all the directories and subdirectories that you see there. But you had to bein the coolj directory, which may seem counter-intuitive.Now go to some other directory, <strong>on</strong>e that is not part of the coolj part ofthe tree, and check out a copy of the source. For example:$ cd$ mkdir devsrc$ cd devsrc$ cvs checkout cooljNOTEIt is important to check out the source after you’ve d<strong>on</strong>e the import, and beforeyou make any changes, because the part of the filesystem that you importedremains untouched. It has no CVS knowledge, so you can’t commit changesfrom that directory, unless you somehow make it CVS-aware. Since these filesare your originals, until you’ve verified that the cvs import has g<strong>on</strong>e asplanned, it’s best not to disturb those files. Create a new directory and checkout the module there.What do you see after the checkout? There should be a single directory,coolj, in the directory where you did the checkout (since it was empty whenyou started). That directory c<strong>on</strong>tains a copy of all the files that you checked in,al<strong>on</strong>g with a directory named CVS inside that directory and every subdirectory.The CVS directories c<strong>on</strong>tain administrative files that help CVS keep track ofthings for you, which means no CVS tracking informati<strong>on</strong> needs to be kept in

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!