org.codehaus.mojo.keytool
Class DefaultKeyToolResult

java.lang.Object
  extended by org.codehaus.mojo.keytool.DefaultKeyToolResult
All Implemented Interfaces:
KeyToolResult

public class DefaultKeyToolResult
extends Object
implements KeyToolResult

Describes the result of a KeyTool invocation.

Since:
1.1
Version:
$Id: DefaultKeyToolResult.java 15796 2012-01-29 16:07:29Z tchemit $
Author:
tchemit

Method Summary
 org.codehaus.plexus.util.cli.Commandline getCommandline()
          Gets the command line used.
 org.codehaus.plexus.util.cli.CommandLineException getExecutionException()
          Gets the exception that possibly occurred during the execution of the command line.
 int getExitCode()
          Gets the exit code from the KeyTool 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()
Gets the exit code from the KeyTool invocation. A non-zero value indicates a build failure.

Note: This value is undefined if KeyToolResult.getExecutionException() reports an exception.

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

getCommandline

public org.codehaus.plexus.util.cli.Commandline getCommandline()
Gets the command line used.

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

getExecutionException

public org.codehaus.plexus.util.cli.CommandLineException getExecutionException()
Gets the exception that possibly occurred during the execution of the command line.

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


Copyright © 2005-2012 Codehaus. All Rights Reserved.