public abstract class AbstractJarsignerMojo
extends org.apache.maven.plugin.AbstractMojo
| Constructor and Description |
|---|
AbstractJarsignerMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected abstract org.codehaus.plexus.util.cli.Commandline |
getCommandline(File archive,
org.codehaus.plexus.util.cli.Commandline commandLine)
Gets the
Commandline to execute for a given Java archive taking a command line prepared for executing
jarsigner. |
protected String |
getCommandlineInfo(org.codehaus.plexus.util.cli.Commandline commandLine)
Gets a string representation of a
Commandline. |
protected void |
preProcessArchive(File archive)
Pre-processes a given archive.
|
public final void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected abstract org.codehaus.plexus.util.cli.Commandline getCommandline(File archive, org.codehaus.plexus.util.cli.Commandline commandLine)
Commandline to execute for a given Java archive taking a command line prepared for executing
jarsigner.archive - The Java archive to get a Commandline to execute for.commandLine - A Commandline prepared for executing jarsigner without any arguments.Commandline for executing jarsigner with archive.NullPointerException - if archive or commandLine is null.protected String getCommandlineInfo(org.codehaus.plexus.util.cli.Commandline commandLine)
Commandline.
This method creates the string representation by calling commandLine.toString() by default.
commandLine - The Commandline to get a string representation of.commandLine.NullPointerException - if commandLine is null.protected void preProcessArchive(File archive) throws org.apache.maven.plugin.MojoExecutionException
archive - The archive to process, must not be null.org.apache.maven.plugin.MojoExecutionException - If pre-processing failed.Copyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.