Java Reference
In-Depth Information
Here 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 rest
of the line is a comment. The asterisk matches any number of any characters.
The question mark matches a single character.
Now we're ready to import. The .cvsignore file should be placed in the
topmost directory of the set of files that you want to import. Then, from that
directory, issue the command:
$ cvs import Project YourCo import
where 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 designator
to differentiate this source from other third-party packages that you may keep
in your repository.
Most importantly, execute the cvs import command from within the
directory, 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, consider a fragment of the filesystem shown in Figure 8.1.
You would want to cd into the directory coolj and then issue the import
command:
$ cd coolj
$ cvs import coolj GJSinc import
Search WWH ::




Custom Search