org.apache.maven.shared.jarsigner
Class DefaultJarSignerResult

java.lang.Object
  extended by org.apache.maven.shared.jarsigner.DefaultJarSignerResult
All Implemented Interfaces:
JarSignerResult

public class DefaultJarSignerResult
extends Object
implements JarSignerResult

Describes the result of a JarSigner invocation.

Since:
1.0
Version:
$Id: DefaultJarSignerResult.java 1190315 2011-10-28 13:43:28Z olamy $
Author:
tchemit

Method Summary
 Commandline getCommandline()
          Gets the command line used.
 CommandLineException getExecutionException()
          Gets the exception that possibly occurred during the execution of the command line.
 int getExitCode()
          Gets the exit code from the JarSigner invocation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getExitCode

public int getExitCode()
Description copied from interface: JarSignerResult
Gets the exit code from the JarSigner invocation. A non-zero value indicates a build failure. Note: This value is undefined if JarSignerResult.getExecutionException() reports an exception.

Specified by:
getExitCode in interface JarSignerResult
Returns:
The exit code from the Jarsigner invocation.

getCommandline

public Commandline getCommandline()
Description copied from interface: JarSignerResult
Gets the command line used.

Specified by:
getCommandline in interface JarSignerResult
Returns:
The command line used

getExecutionException

public CommandLineException getExecutionException()
Description copied from interface: JarSignerResult
Gets the exception that possibly occurred during the execution of the command line.

Specified by:
getExecutionException in interface JarSignerResult
Returns:
The exception that prevented to invoke Jarsigner or null if the command line was successfully processed by the operating system.


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.