@Mojo(name="changeAlias", requiresProject=true) public class ChangeAliasMojo extends AbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo<KeyToolChangeAliasRequest>
keytool -keyclone
(jdk 1.5) or keytool -changealias
(jdk 1.6)
command.
See keystore documentation.Constructor and Description |
---|
ChangeAliasMojo()
Default contructor.
|
Modifier and Type | Method and Description |
---|---|
protected KeyToolChangeAliasRequest |
createKeytoolRequest()
To prepare the incoming request, says fill it with mojo parameters.
|
protected String |
getCommandlineInfo(org.apache.maven.shared.utils.cli.Commandline commandLine)
Gets a string representation of a
Commandline . |
String |
getDestalias()
Gets the value of the
destalias field. |
String |
getKeypass()
Gets the value of the
keypass field. |
void |
setDestalias(String destalias) |
void |
setKeypass(String keypass)
Sets the new given value to the field
keypass of the request. |
createParentDirIfNecessary, getFile, getKeystoreFile
consumeResult, execute
getMessage, getMessage, getMessage, isSkip, isVerbose, setSkip, setVerbose
public String getDestalias()
destalias
field.destalias
fieldpublic void setDestalias(String destalias)
destalias
- value of the field destalias
to setpublic String getKeypass()
keypass
field.keypass
field.public void setKeypass(String keypass)
keypass
of the request.keypass
- the new value of the field keypass
.protected KeyToolChangeAliasRequest createKeytoolRequest()
createKeytoolRequest
in class AbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo<KeyToolChangeAliasRequest>
KeyToolRequest
protected String getCommandlineInfo(org.apache.maven.shared.utils.cli.Commandline commandLine)
Commandline
.
This method creates the string representation by calling commandLine.toString()
by default.
getCommandlineInfo
in class AbstractKeyToolRequestWithKeyStoreParametersMojo<KeyToolChangeAliasRequest>
commandLine
- The Commandline
to get a string representation of (can not be null).commandLine
.Copyright © 2005–2018 MojoHaus. All rights reserved.