Section 6.4. Getting Version Data


6.4. Getting Version Data

The cvsversion task retrieves the version of the CVS client and server. For example, this cvsversion element stores the server's version number in the property cvsServerVersion, and the client's version in cvsClientVersion:

<cvsversion cvsroot=":pserver:steven@STEVE:/home/steven/repository"      password="opensesame"     cvsserverproperty="cvsServerVersion"     cvsclientproperty="cvsClientVersion" />

The attributes for this task appear in Table 6-5.

Table 6-5. The cvsversion task's attributes

Attribute

Description

Required

Default

cvsclientproperty

Specifies the name of the property in which you want the version of the cvsclient to be placed

No

 

cvsroot

Specifies the

CVSROOT

variable you want to use

No

 

cvsrsh

Specifies the

CVS_RSH

variable you want to use

No

 

cvsserverproperty

Specifies the name of a property where you want the CVS server version to be placed

No

 

dest

Specifies the directory which holds, or will hold, a checked-out project

No

Project's basedir

failonerror

Makes the build fail if this task encounters an error

No

false

package

Specifies the module you want to check out

No

 

passfile

Specifies the password file you want the task to read passwords from

No

~/.cvspass

port

Specifies the port used to communicate with the CVS server

No

Port 2401




    Ant. The Definitive Guide
    Ant: The Definitive Guide, 2nd Edition
    ISBN: 0596006098
    EAN: 2147483647
    Year: 2003
    Pages: 115
    Authors: Steve Holzner

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net