|
6.2. Logging InYou use the cvspass task to log into a CVS server to get access to the code stored in the CVS repository. This task adds entries to a .cvspass file, which has the same affect as a CVS login command. When a .cvspass file has been created, subsequent logins will get the needed data from this file, and you won't have to supply a password again. The values you assign to the attribute named cvsroot use the same format of strings that appear in a CVS .cvspass file, which specifies the protocol type, username, server, and repository location. For example, using the pserver protocol with a user named Steven, a server named STEVE, and a repository location of /home/steven/repository, cvspass would look like: <?xml version="1.0"?> <project default="main" basedir="."> <property name="cvs.dir" value="project" /> <target name="main" > <cvspass cvsroot=":pserver:steven@STEVE:/home/steven/repository" password="opensesame" /> . . . </target> </project> The CVS-related tasks can read the CVS root value from the cvsroot attribute, if they support that attribute, or from the CVSROOT environment variable.
The attributes of the cvspass task appear in Table 6-3.
|
|