B.10 CvsTask
Prev | Appendix B. Core tasks | Next

## B.10 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.11: Attributes

Name | Type | Description | Default | Required
--- | --- | --- | --- | ---
`cvsRoot` | `String` | The root directory on the CVS server | n/a | No
`CvsRsh` | `String` | Path to the rsh to execute | n/a | No
`port` | `Integer` | Port ion the server to use | 0 | No
`passfile` | String `filename` | Name of file with CVS passwords | n/a | No
`dest` | `String` | The directory where checked out files should be placed | n/a | Yes
`modules` | `String` | The package/module to operate upon | n/a | Yes
`tag` | `String` | The tag of the package/module to operate upon | n/a | No
`date` | `String` | Use the most recent revision no later than the given date | n/a | No
`quiet` | `Boolean` | Quiet run | `false` | No
`noexec` | `Boolean` | If true, only report changes don't actually do anything | `false` | No
`failonerror` | `Boolean` | Stop the build process if the command returns any errors | `false` | No
`compression` | `Boolean` | If true, turns on compression using default (3) compression level | `false` | No
`compressionlevel` | `Integer` | Specifies compression level 1-9 | `false` | No
`output` | String `filename` | File to which output should be written | n/a | No
`error` | String `filename` | File to which error output should be written | n/a | No
`command` | `String` | Optional command line to be given to the CVS task | null | No

### B.10.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" />

Prev | Up | Next
B.9 CopyTask | Home | B.11 CvsPassTask