Cernunnos Manual


<cvs-remove>

Description:

Perfoms a CVS remove operation.

Reagents:

Name XPath Description Reagent Type Expected Type Required
CLIENT @client Optional Client object to use in performing this remove. If omitted, the value of the 'CvsAttributes.CLIENT' request attribute will be used. PHRASE org.netbeans.lib.cvsclient.Client No
CVSROOT @cvsroot Optional CVSRoot string for preparing the GlobalOptions (e.g. ':pserver:user@host:/usr/local/cvsroot'). If omitted, the value of the 'CvsAttributes.CVSROOT' request attribute will be used. PHRASE java.lang.String No
LOCAL_PATH @local-path Path expression indicating the directory where the application is logically working from. PHRASE java.lang.String Yes
FILES @files Either a List of String objects or a single String indicating the files to remove. If RECURSE is 'true' (default), each directory specified will also have its entire contents removed. PHRASE java.lang.Object Yes
RECURSE @recurse Optional Boolean expression specifying whether to remove these FILES recursively or not. The default is Boolean.TRUE. PHRASE java.lang.Boolean No
DELETE_BEFORE_REMOVE @delete-before-remove Optional Boolean expression specifying whether to delete FILES in working dir before removing them. The default is Boolean.TRUE. PHRASE java.lang.Boolean No

Examples:

Removes the files 'abc.txt' and 'xyz.txt' from the CVS module checked out at '/usr/local/person':

 
       
        <with-attribute key="myFiles" value="${groovy(['abc.txt', 'xyz.txt'])}"> 
          <cvs-client cvsroot=":pserver:user@host:/usr/local/cvsroot" encoded-password="change^me"> 
            <cvs-remove files="${myFiles}" local-path="/usr/local/person"/> 
          </cvs-client> 
        </with-attribute>