public abstract class AbstractCredentialsTask
extends org.gradle.api.DefaultTask
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCredentialsTask()
Initialize the console reader.
|
| Modifier and Type | Method and Description |
|---|---|
protected SystemConsole |
getConsole() |
protected char[] |
getPassword()
This method will read the password from the console and return it.
|
java.lang.String |
getService() |
protected CredentialsStorage |
getStorage() |
java.lang.String |
getUsername()
This method will return the username, either from the command line option or
it will be read from the command line.
|
void |
setService(java.lang.String service)
Sets the service name.
|
void |
setUsername(java.lang.String username)
Sets the username.
|
addValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, executeWithoutThrowingTaskFailure, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getImpliesSubProjects, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setName, setOnlyIf, setOnlyIf, setProject, setProperty, setShouldRunAfter, shouldRunAfter, toStringprotected AbstractCredentialsTask()
public java.lang.String getService()
public void setService(java.lang.String service)
service - the service nam.public java.lang.String getUsername()
public void setUsername(java.lang.String username)
username - the usernameprotected CredentialsStorage getStorage()
protected SystemConsole getConsole()
protected char[] getPassword()