public class CvsPass
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
cvsRoot
CVS Root
|
private ScmLogger |
logger |
private java.io.File |
passFile
Password file to add password to
|
private java.lang.String |
password
Password to add to file
|
private char[] |
shifts
Array contain char conversion data
|
Constructor and Description |
---|
CvsPass(ScmLogger logger)
Create a CVS task using the default cvspass file location.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Does the work.
|
private java.lang.String |
mangle(java.lang.String password) |
void |
setCvsroot(java.lang.String cvsRoot)
The CVS repository to add an entry for.
|
void |
setPassfile(java.io.File passFile)
Password file to add the entry to.
|
void |
setPassword(java.lang.String password)
Password to be added to the password file.
|
private java.lang.String cvsRoot
private java.io.File passFile
private java.lang.String password
private ScmLogger logger
private final char[] shifts
public CvsPass(ScmLogger logger)
public final void execute() throws ScmException, java.io.IOException
ScmException
- if something is missingjava.io.IOException
- if something goes wrongprivate java.lang.String mangle(java.lang.String password)
public void setCvsroot(java.lang.String cvsRoot)
cvsRoot
- the CVS repositorypublic void setPassfile(java.io.File passFile)
passFile
- the password file.public void setPassword(java.lang.String password)
password
- the password.