classes/phing/tasks/system/CvsTask.php
\CvsTask
Task for performing CVS operations.
NOTE: This implementation has been moved here from Cvs.java with the addition of some accessors for extensibility. Another task can extend this with some customized output processing.
- Extends from
- \Task
- author
- Hans Lellelid
(Phing) - author
- costin@dnt.ro (Ant)
- author
- stefano@apache.org (Ant)
- author
- Wolfgang Werner
(Ant) - author
- Kevin Ross
(Ant) - copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing.tasks.system
- version
- $Revision: 526 $
Constants
Properties

array
$commandlines= 'array'
List of Commandline children
Commandline[]arrayDetails- Type
- array

boolean
$failOnError= 'false'
If true it will stop the build if cvs exits with error.
Default is false. (Iulian)
falseDetails- Type
- boolean
Methods

addConfiguredCommandline(
\insertAtStart $c, $insertAtStart
=
false
)
:
Configures and adds the given Commandline.
| Name | Type | Description |
|---|---|---|
| $c | \insertAtStart | If true, c is |
| $insertAtStart |

appendCommandArgument(
$arg
)
:
This needs to be public to allow configuration
of commands externally.
| Name | Type | Description |
|---|---|---|
| $arg |

configureCommandline(
$c
)
:
stringConfigure a commandline element for things like cvsRoot, quiet, etc.
| Name | Type | Description |
|---|---|---|
| $c |
| Type | Description |
|---|---|
| string |

runCommand(
\Commandline $toExecute
)
:
Sets up the environment for toExecute and then runs it.
| Name | Type | Description |
|---|---|---|
| $toExecute | \Commandline |
- throws

setCompression(
boolean $usecomp
)
:
If true, this is the same as compressionlevel="3".
| Name | Type | Description |
|---|---|---|
| $usecomp | boolean | If true, turns on compression using default level, AbstractCvsTask.DEFAULT_COMPRESSION_LEVEL. |

setCompressionLevel(
int $level
)
:
If set to a value 1-9 it adds -zN to the cvs command line, else
it disables compression.
| Name | Type | Description |
|---|---|---|
| $level | int |

setDate(
$p
)
:
Use the most recent revision no later than the given date.
| Name | Type | Description |
|---|---|---|
| $p | p |

setDest(
\PhingFile $dest
)
:
The directory where the checked out files should be placed.
| Name | Type | Description |
|---|---|---|
| $dest | \PhingFile |

setFailOnError(
boolean $failOnError
)
:
Stop the build process if the command exits with
a return code other than 0.
Defaults to false.
| Name | Type | Description |
|---|---|---|
| $failOnError | boolean |

setNoexec(
boolean $ne
)
:
If true, report only and don't change any files.
| Name | Type | Description |
|---|---|---|
| $ne | boolean |

setPassfile(
$passFile
)
:
Password file to read passwords from.
| Name | Type | Description |
|---|---|---|
| $passFile | passFile |

setPort(
int $port
)
:
Port used by CVS to communicate with the server.
| Name | Type | Description |
|---|---|---|
| $port | int |

setQuiet(
boolean $q
)
:
If true, suppress informational messages.
| Name | Type | Description |
|---|---|---|
| $q | boolean |