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 584397 2007-10-13 13:03:00Z mauro $
- Author:
- Jerome Lacoste
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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(Commandline commandLine,
java.io.InputStream inputStream,
StreamConsumer systemOut,
StreamConsumer systemErr)
throws CommandLineException
- Throws:
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.