B.11 CvsTask

Allows rudimentary interfacing with the CVS versioning system.

As you would expect, this lets you do pretty much anything with CVS. The CvsTask calls ExecTask which actually does the command execution.

Table B.12: Attributes

NameTypeDescriptionDefaultRequired
cvsRootStringThe root directory on the CVS servern/aNo
CvsRshStringPath to the rsh to executen/aNo
portIntegerPort ion the server to use0No
passfileString filenameName of file with CVS passwordsn/aNo
destStringThe directory where checked out files should be placedn/aYes
modulesStringThe package/module to operate uponn/aYes
tagStringThe tag of the package/module to operate uponn/aNo
dateStringUse the most recent revision no later than the given daten/aNo
quietBooleanQuiet runfalseNo
noexecBooleanIf true, only report changes don't actually do anythingfalseNo
failonerrorBooleanStop the build process if the command returns any errorsfalseNo
compressionBooleanIf true, turns on compression using default (3) compression levelfalseNo
compressionlevelIntegerSpecifies compression level 1-9falseNo
outputString filenameFile to which output should be writtenn/aNo
errorString filenameFile to which error output should be writtenn/aNo
commandStringOptional command line to be given to the CVS tasknullNo

B.11.1 Examples

<cvs cvsRoot=":pserver:guest@cvs.tigris.org:/cvs"
       module="phing" dest="${ws.dir}"/>

or, using the optional command line arguments:

<cvs output="patch" command="-q diff -u -N" />