org.apache.maven.plugin.jar
Class JarSignVerifyMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.jar.JarSignVerifyMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class JarSignVerifyMojo
- extends org.apache.maven.plugin.AbstractMojo
Checks the signature of a signed jar using jarsigner.
- Version:
- $Id: JarSignVerifyMojo.java 421019 2006-07-11 22:48:44Z dennisl $
- Author:
- Jerome Lacoste
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
void |
execute()
|
protected int |
executeCommandLine(org.codehaus.plexus.util.cli.Commandline commandLine,
java.io.InputStream inputStream,
org.codehaus.plexus.util.cli.StreamConsumer systemOut,
org.codehaus.plexus.util.cli.StreamConsumer systemErr)
|
boolean |
isSigned()
Is the JAR file signed ? Output property set by the execute() call. |
void |
setBasedir(java.io.File basedir)
|
void |
setCheckCerts(boolean checkCerts)
|
void |
setErrorWhenNotSigned(boolean errorWhenNotSigned)
Sets a boolean that is to determine if an exception should be thrown when
the JAR file being verified is unsigned. |
void |
setJarPath(java.io.File jarPath)
|
void |
setVerbose(boolean verbose)
|
void |
setWorkingDir(java.io.File workingDir)
|
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 |
JarSignVerifyMojo
public JarSignVerifyMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
executeCommandLine
protected int executeCommandLine(org.codehaus.plexus.util.cli.Commandline commandLine,
java.io.InputStream inputStream,
org.codehaus.plexus.util.cli.StreamConsumer systemOut,
org.codehaus.plexus.util.cli.StreamConsumer systemErr)
throws org.codehaus.plexus.util.cli.CommandLineException
- Throws:
org.codehaus.plexus.util.cli.CommandLineException
setWorkingDir
public void setWorkingDir(java.io.File workingDir)
setBasedir
public void setBasedir(java.io.File basedir)
setJarPath
public void setJarPath(java.io.File jarPath)
setCheckCerts
public void setCheckCerts(boolean checkCerts)
setVerbose
public void setVerbose(boolean verbose)
isSigned
public boolean isSigned()
- Is the JAR file signed ? Output property set by the
execute()
call.
- Returns:
true
if the jar was signed, false
otherwise.
setErrorWhenNotSigned
public void setErrorWhenNotSigned(boolean errorWhenNotSigned)
- Sets a boolean that is to determine if an exception should be thrown when
the JAR file being verified is unsigned. If you just what to check if a
JAR is unsigned and then act on the result, then you probably want to
set this to
true
.
Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.