@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, getKeystoreFileconsumeResultgetMessage, getMessage, getMessage, isSkip, isVerbose, setSkip, setVerbosepublic void execute()
throws org.apache.maven.plugin.MojoExecutionException
AbstractKeyToolRequestMojoexecute in interface org.apache.maven.plugin.Mojoexecute in class AbstractKeyToolRequestMojo<KeyToolImportCertificateRequest>org.apache.maven.plugin.MojoExecutionExceptionprotected KeyToolImportCertificateRequest createKeytoolRequest()
createKeytoolRequest in class AbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo<KeyToolImportCertificateRequest>KeyToolRequestprotected 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–2024 MojoHaus. All rights reserved.