Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs

public Class CVSPass

extends Task
Class Inheritance
Imports
java.io.BufferedReader, .BufferedWriter, .File, .FileReader, .FileWriter, .IOException, org.apache.tools.ant.BuildException, .Project, .Task, org.apache.tools.ant.util.FileUtils

Adds an new entry to a CVS password file.
Since
Ant 1.4

Field Summary

Modifier and TypeField and Description
private String
cvsRoot

CVS Root

private File
passFile

Password file to add password to

private String
password

Password to add to file

private final char[]
shifts

Array contain char conversion data

Inherited from org.apache.tools.ant.Task:
targettaskNametaskTypewrapper

Constructor Summary

AccessConstructor and Description
public
CVSPass()

Create a CVS task using the default cvspass file location.

Method Summary

Modifier and TypeMethod and Description
public final void
execute()

Overrides org.apache.tools.ant.Task.execute.

Does the work.
private final String
mangle(String password)

public void
setCvsroot(String
the CVS repository
cvsRoot
)

The CVS repository to add an entry for.

public void
setPassfile(File
the password file.
passFile
)

Password file to add the entry to.

public void
setPassword(String
the password.
password
)

Password to be added to the password file.

Inherited from org.apache.tools.ant.Task:
bindToOwnergetOwningTargetgetRuntimeConfigurableWrappergetTaskNamegetTaskTypegetWrapperhandleErrorFlushhandleErrorOutputhandleFlushhandleInputhandleOutputinitisInvalidloglogloglogmaybeConfigureperformreconfiguresetOwningTargetsetRuntimeConfigurableWrappersetTaskNamesetTaskType

Field Detail

cvsRootback to summary
private String cvsRoot

CVS Root

passFileback to summary
private File passFile

Password file to add password to

passwordback to summary
private String password

Password to add to file

shiftsback to summary
private final char[] shifts

Array contain char conversion data

Constructor Detail

CVSPassback to summary
public CVSPass()

Create a CVS task using the default cvspass file location.

Method Detail

executeback to summary
public final void execute() throws BuildException

Overrides org.apache.tools.ant.Task.execute.

Does the work.

Annotations
@Override
Exceptions
BuildException:
if something goes wrong with the build
mangleback to summary
private final String mangle(String password)
setCvsrootback to summary
public void setCvsroot(String cvsRoot)

The CVS repository to add an entry for.

Parameters
cvsRoot:String

the CVS repository

setPassfileback to summary
public void setPassfile(File passFile)

Password file to add the entry to.

Parameters
passFile:File

the password file.

setPasswordback to summary
public void setPassword(String password)

Password to be added to the password file.

Parameters
password:String

the password.