org.apache.maven.scm.provider.cvslib.command.login

Class CvsPass

public class CvsPass extends Object

Adds an new entry to a CVS password file.

Version: $Id: CvsPass.java 381987 2006-03-01 11:16:02Z evenisse $

UNKNOWN: Update this class for support password storage in cvsnt. CVSNT use the windows registry, so, we need a jni tool for access to the windows registry

Constructor Summary
CvsPass(ScmLogger logger)
Create a CVS task using the default cvspass file location.
Method Summary
voidexecute()
Does the work.
voidsetCvsroot(String cvsRoot)
The CVS repository to add an entry for.
voidsetPassfile(File passFile)
Password file to add the entry to.
voidsetPassword(String password)
Password to be added to the password file.

Constructor Detail

CvsPass

public CvsPass(ScmLogger logger)
Create a CVS task using the default cvspass file location.

Method Detail

execute

public final void execute()
Does the work.

Throws: ScmException if something is missing IOException if something goes wrong

setCvsroot

public void setCvsroot(String cvsRoot)
The CVS repository to add an entry for.

Parameters: cvsRoot the CVS repository

setPassfile

public void setPassfile(File passFile)
Password file to add the entry to.

Parameters: passFile the password file.

setPassword

public void setPassword(String password)
Password to be added to the password file.

Parameters: password the password.

Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.