Working with the Server

The cvs task lets you interact with the CVS server after you've logged in. The attributes of this task appear in Table 6-4; to use this task, the cvs command must work on the command line (ie., the cvs binary must be in your path).

Table 6-4. The cvs attributes

Attribute

Description

Required

Default

append

Specifies whether you want to append output when redirecting text to a file.

No

false

command

Specifies the CVS command you want to execute.

No

"checkout"

compression

The same as compressionlevel="3".

No

false

compressionlevel

Specifies the compression level you want to use, via a number between 1 and 9. Any other value sets compression="false".

No

false

cvsRoot

Specifies the CVSROOT variable.

No

 

cvsRsh

Specifies the CVS_RSH variable.

No

 

date

Specifies that you want to use the most recent revision, as long as it is no later than the given date.

No

 

dest

Specifies the directory where you want checked-out files to be placed.

No

The project's basedir.

error

Specifies the file where you want error messages stored.

No

Sends errors to the Ant Log as MSG_WARN.

failonerror

Stops the build if the task encounters an error.

No

false

noexec

Specifies that CVS actions should report only, without changing any files.

No

false

output

Specifies the file to which standard output should be directed.

No

Sends output to the Ant Log as MSG_INFO.

package

Specifies the module you want to check out.

No

 

passfile

Specifies a password file you want to have the task read passwords ...

Get Ant: The Definitive Guide, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.