org.apache.maven.plugin.jar
Class JarSignVerifyMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.jar.JarSignVerifyMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

Deprecated. As of version 2.3, this goal is no longer supported in favor of the dedicated maven-jarsigner-plugin.

public class JarSignVerifyMojo
extends org.apache.maven.plugin.AbstractMojo

Checks the signature of a signed jar using jarsigner.

Version:
$Id: JarSignVerifyMojo.java 802529 2009-08-09 12:05:35Z bentmann $
Author:
Jerome Lacoste
Is defined by the goal name:
sign-verify
Is bound to the specified phase of the standard build lifecycle:
package
Requires the dependencies in this specified scope:
runtime
Requires a Maven project to run:
true

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
JarSignVerifyMojo()
          Deprecated.  
 
Method Summary
 void execute()
          Deprecated.  
protected  int executeCommandLine(Commandline commandLine, InputStream inputStream, StreamConsumer systemOut, StreamConsumer systemErr)
          Deprecated.  
 boolean isSigned()
          Deprecated. Is the JAR file signed ? Output property set by the execute() call.
 void setBasedir(File basedir)
          Deprecated.  
 void setCheckCerts(boolean checkCerts)
          Deprecated.  
 void setErrorWhenNotSigned(boolean errorWhenNotSigned)
          Deprecated. Sets a boolean that is to determine if an exception should be thrown when the JAR file being verified is unsigned.
 void setJarPath(File jarPath)
          Deprecated.  
 void setVerbose(boolean verbose)
          Deprecated.  
 void setWorkingDir(File workingDir)
          Deprecated.  
 
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
 

Constructor Detail

JarSignVerifyMojo

public JarSignVerifyMojo()
Deprecated. 
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Deprecated. 
Throws:
org.apache.maven.plugin.MojoExecutionException

executeCommandLine

protected int executeCommandLine(Commandline commandLine,
                                 InputStream inputStream,
                                 StreamConsumer systemOut,
                                 StreamConsumer systemErr)
                          throws CommandLineException
Deprecated. 
Throws:
CommandLineException

setWorkingDir

public void setWorkingDir(File workingDir)
Deprecated. 

setBasedir

public void setBasedir(File basedir)
Deprecated. 

setJarPath

public void setJarPath(File jarPath)
Deprecated. 

setCheckCerts

public void setCheckCerts(boolean checkCerts)
Deprecated. 

setVerbose

public void setVerbose(boolean verbose)
Deprecated. 

isSigned

public boolean isSigned()
Deprecated. 
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)
Deprecated. 
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-2011 The Apache Software Foundation. All Rights Reserved.