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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

196Chapter 8Know What You Have: CVSHere is a .cvswrappers file that we recommend for Java developers:## A recommended .cvswrappers file## jar files - treat as binary:*.jar -k 'b'## Image file formats - treat as binary:*.gif -k 'b'*.jpg -k 'b'*.png -k 'b'*.tif -k 'b'## Document file formats - treat as binary# both MSOffice and OpenOffice.org file formats:*.doc -k 'b'*.ppt -k 'b'*.xls -k 'b'*.sx? -k 'b'The format of the file is very UNIX-like. A leading # means that the restof the line is a comment. The asterisk matches any number of any characters.The questi<strong>on</strong> mark matches a single character.Now we’re ready to import. The .cvsignore file should be placed in thetopmost directory of the set of files that you want to import. Then, from thatdirectory, issue the command:$ cvs import Project YourCo importwhere Project is whatever name you want to use for this project (or module)in CVS, and YourCo is the name of your company or some other designatorto differentiate this source from other third-party packages that you may keepin your repository.Most importantly, execute the cvs import command from within thedirectory, even though the name of the project is likely (but doesn’t have to be)the same as the name of the directory in which you sit.For example, c<strong>on</strong>sider a fragment of the filesystem shown in Figure 8.1.You would want to cd into the directory coolj and then issue the importcommand:$ cd coolj$ cvs import coolj GJSinc import

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

Saved successfully!

Ooh no, something went wrong!