@Mojo(name="importCertificate", requiresProject=true) public class ImportCertificateMojo extends AbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo<KeyToolImportCertificateRequest>
keytool -import
(jdk 1.5) or keytool -importcert
(jdk 1.6)
command.
See keystore documentation.
Since version 1.2, this mojo replace the mojo import.Constructor and Description |
---|
ImportCertificateMojo()
Default contructor.
|
Modifier and Type | Method and Description |
---|---|
protected KeyToolImportCertificateRequest |
createKeytoolRequest()
To prepare the incoming request, says fill it with mojo parameters.
|
void |
execute() |
protected String |
getCommandlineInfo(org.apache.maven.shared.utils.cli.Commandline commandLine)
Gets a string representation of a
Commandline . |
createParentDirIfNecessary, getFile, getKeystoreFile
consumeResult
getMessage, getMessage, getMessage, isSkip, isVerbose, setSkip, setVerbose
public void execute() throws org.apache.maven.plugin.MojoExecutionException
AbstractKeyToolRequestMojo
execute
in interface org.apache.maven.plugin.Mojo
execute
in class AbstractKeyToolRequestMojo<KeyToolImportCertificateRequest>
org.apache.maven.plugin.MojoExecutionException
protected KeyToolImportCertificateRequest createKeytoolRequest()
createKeytoolRequest
in class AbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo<KeyToolImportCertificateRequest>
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<KeyToolImportCertificateRequest>
commandLine
- The Commandline
to get a string representation of (can not be null).commandLine
.Copyright © 2005–2015 Codehaus. All rights reserved.