org.apache.maven.plugins.jarsigner
Class JarsignerSignMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.jarsigner.AbstractJarsignerMojo
org.apache.maven.plugins.jarsigner.JarsignerSignMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class JarsignerSignMojo
- extends AbstractJarsignerMojo
Signs a project artifact and attachments using jarsigner.
- Since:
- 1.0
- Version:
- $Id: JarsignerSignMojo.java 802604 2009-08-09 21:09:05Z bentmann $
- Author:
- Christian Schulte
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
|
Method Summary |
protected 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. |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JarsignerSignMojo
public JarsignerSignMojo()
getCommandline
protected org.codehaus.plexus.util.cli.Commandline getCommandline(File archive,
org.codehaus.plexus.util.cli.Commandline commandLine)
- Description copied from class:
AbstractJarsignerMojo
- Gets the
Commandline to execute for a given Java archive taking a command line prepared for executing
jarsigner.
- Specified by:
getCommandline in class AbstractJarsignerMojo
- Parameters:
archive - The Java archive to get a Commandline to execute for.commandLine - A Commandline prepared for executing jarsigner without any arguments.
- Returns:
- A
Commandline for executing jarsigner with archive.
getCommandlineInfo
protected String getCommandlineInfo(org.codehaus.plexus.util.cli.Commandline commandLine)
- Description copied from class:
AbstractJarsignerMojo
- Gets a string representation of a
Commandline.
This method creates the string representation by calling commandLine.toString() by default.
- Overrides:
getCommandlineInfo in class AbstractJarsignerMojo
- Parameters:
commandLine - The Commandline to get a string representation of.
- Returns:
- The string representation of
commandLine.
preProcessArchive
protected void preProcessArchive(File archive)
throws org.apache.maven.plugin.MojoExecutionException
- Description copied from class:
AbstractJarsignerMojo
- Pre-processes a given archive.
- Overrides:
preProcessArchive in class AbstractJarsignerMojo
- Parameters:
archive - The archive to process, must not be null.
- Throws:
org.apache.maven.plugin.MojoExecutionException - If pre-processing failed.
Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.