CVS FAQ

|  |  |  | FAQ CVS FAQ |

Main
Welcome!
Download
Mailing Lists
The Team

Users
Quickstart
Hello World!
CMP Example
CMP Guide
Deploy
Startup
Validation
Configuration
Support
Request Feature
FAQ

Servers
Local Server
Remote Server
Tomcat

Integrators
Why OpenEJB
Overview
Design
Specification
Presentation

Developers
Custom Services
Release Plan
Source Code
SourceForge

CVS FAQ

- What is CVS?
- Where can I get CVS?
- How do I install CVS?

## What is CVS?

The Concurrent Versions System (CVS) provides network-transparent source control for groups of developers. CVS has four basic functions:

- | Maintains a history of all changes made to each directory tree it manages
- | Provides hooks to support process control and change control
- | Provides reliable access to its directory trees from remote hosts using Internet protocols
- | Supports parallel development allowing more than one developer to work on the same sources at the same time

All the OpenEJB source code, documentation, and other files are in a CVS repository on a server at SourceForge. To access the repository and download the source code and other files, you need a cvs client.

## Where can I get CVS?

If you are on a Linux machine, you most likely already have cvs. To find out if cvs is intalled, type the following command at a prompt:
which cvs

If you are one a Windows machine, you will need to download the CVS command-line client for Windows.

The CVS command line client is available on many operating systems. Choose the CVS client that's right for your OS at the official CVS download page.

## How do I install CVS?

There is no "Install Shield" for cvs. You just put the cvs executable in any directory and then include that directory in your PATH system variable. Then you can execute cvs commands from anywhere in your command shell.

### Set the PATH variable

To set the PATH variable on a Windows machine, execute the following command in a command prompt.
set PATH=%PATH%;C:\the\path\where\cvs\is

### Set the CVSROOT variable

To execute cvs commands against a CVS repository, you must tell cvs where the repository is by setting its location in a CVSROOT evironment variable, or by specifying it in your command with the cvs -d option.

To set the CVSROOT variable on a Windows machine so that it points toward the OpenEJB cvs at SourceForge, execute the following command in a command prompt.
set CVSROOT=:pserver:anonymous@cvs.openejb.sf.net:/cvsroot/openejb

### Set the HOME variable

The first time you access a particular CVS repository, you must first login to the server hosting the repository. You can do this with the 'cvs login' command, but before doing this you need to set another environment variable. CVS needs to know where to put your login information, for this you must set the HOME environment variable on your OS or in your shell.
If you are on a Linux/Unix machine, this will already be set, but if you are on a Windows machine, you will most likely need to do this manually.

To set the HOME variable on a Windows machine, execute the following command in a command prompt.
set HOME=C:\any\directory\works

Java, EJB, JDBC, JNDI, JTA, Sun, Sun Microsystems are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and in other countries. XML, XML Schema, XSLT and related standards are trademarks or registered trademarks of MIT, INRIA, Keio or others, and a product of the World Wide Web Consortium. All other product names mentioned herein are trademarks of their respective owners.