Cernunnos Manual


<cvs-client>

Description:

Creates, configures, and opens an org.netbeans.lib.cvsclient.Client for interacting with a CVS server.

<cvs-client> registers two request attributes for subtasks: (1) an instance of Client under the name specified by ATTRIBUTE_NAME; and (2) the CVSROOT String under the name CvaAttributes.CVSROOT. The latter is necessary for constructing the GlobalOptions objects required by CVS command classes.

Reagents:

Name XPath Description Reagent Type Expected Type Required
ATTRIBUTE_NAME @attribute-name Optional name under which the new Client object will be registered as a request attribute. If omitted, the name 'CvsAttributes.CLIENT' will be used. PHRASE java.lang.String No
CVSROOT @cvsroot CVSRoot string for connecting to the CVS server (e.g. ':pserver:user@host:/usr/local/cvsroot'). PHRASE java.lang.String Yes
ENCODED_PASSWORD @encoded-password The CVS password encoded appropriately. PHRASE java.lang.String No
CVS_EXT @cvs-ext External command to use when :ext protocol is specified. PHRASE java.lang.String No
ADAPTER @adapter Event handling adapter class (this must be coded in Java) PHRASE org.netbeans.lib.cvsclient.event.CVSAdapter No
SUBTASKS * The set of tasks that are children of this task. NODE_LIST java.util.List No

Examples:

Checks out the 'foo/bar' CVS module into the 'myProject' directory:

 
       
        <cvs-client cvsroot=":pserver:user@host:/usr/local/cvsroot" encoded-password="change^me"> 
          <cvs-checkout dir="myProject" local-path="/usr/local/person" module="foo/bar"/> 
        </cvs-client> 
       
    

Adds 'some-file.txt' and the entire contents of 'another-sub-dir' to the 'myProject' CVS module:

 
       
        <cvs-client cvsroot=":pserver:user@host:/usr/local/cvsroot" encoded-password="change^me"> 
          <cvs-add local-path="C:\HOME\work\myProject"> 
            <file>some-sub-dir\some-file.txt</file>  
            <file>some-sub-dir\another-sub-dir</file> 
          </cvs-add> 
        </cvs-client>