Rule Builder > Working with Repositories in CVS > Getting Started With the CVS Plug-in > Checking Out a Repository From CVS

Note that this operation should only be carried out if the JRules repository has not already been checked out of CVS. Once checked out the file-based repository is copied to your local directory structure. Alias and ampersand modules are not supported. Only modules defined as regular modules are supported by the CVS plug-in.

For the regular module to be supported, the module name and the directory name that appear in the CVS modules file must be the same, for example, if the repository module is named "jrulesrep", the corresponding directory should also be named "jrulesrep".

In this case, on checkout, a single directory called jrulesrep is created as a working directory and all the directory levels below this are also created.

The CVS Checkout Repository command is available from the Repository menu.
Note
A successful CVS Checkout Repository command always results in read-only files. To be able to edit the files, you must carry out a CVS Edit command on them.

To check out a working copy of a JRules repository from CVS:

  1. Click CVS Checkout Repository on the Repository menu.
  2. In the CVS Checkout window specify the CVS module name and path on the CVS server, using forward slashes as the directory separator, and select the local folder to check out to. Click the images/ellipsis_buttona.png button to browse the local folders.

  3. images/cvs_repcheckout.png
  4. Figure 6.3    CVS Checkout Window
  5. To check out a certain revision number, tag, or branch of files other than the most recent revision in CVS, click the checkbox in the General Settings part of the dialog box and enter your identifier.

If the module name and server path correspond to the root of a JRules repository, then the JRules repository is loaded into the Rule Builder. If the JRules repository root is not found the JRules repository will not be loaded into the Rule Builder. However, the CVS checkout command will put the contents of this module into your local working directory.

For example, if a user performs a CVS Checkout Repository action and specifies the module name, path, and local folder as shown in Figure 6.3, this will create a working copy of everything below the jrulesrep directory from the CVS server module OurJRulesProject in the local directory c:\projects.

If the local directory c:\projects\OurJRulesProject\jrulesrep is the root of a JRules repository then it will be loaded by the Rule Builder.

See Also

Setting the CVS Root | Logging in to CVS | Adding a Repository to CVS


Customer Support | Copyright © 1987-2004 ILOG S.A. All rights reserved. Legal terms. PREVIOUS   NEXT