org.codehaus.mojo.keytool
Class AbstractCmdLineKeyToolMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.keytool.AbstractKeyToolMojo
          extended by org.codehaus.mojo.keytool.AbstractCmdLineKeyToolMojo
All Implemented Interfaces:
ContextEnabled, Mojo
Direct Known Subclasses:
ExportMojo, GenkeyMojo, ImportMojo

Deprecated. since 1.2, use now the AbstractKeyToolRequestMojo instead.

@Deprecated
public abstract class AbstractCmdLineKeyToolMojo
extends AbstractKeyToolMojo

Version:
1.0 2008-02-03
Author:
Juergen Mayrbaeurl

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractCmdLineKeyToolMojo()
          Deprecated.  
 
Method Summary
protected  void consumeResult(KeyToolResult result)
          Deprecated. To consume the keytool comand execution.
protected  void createParentDirIfNecessary(String file)
          Deprecated. Create the parent directory of the given file location.
protected abstract  KeyToolRequestWithKeyStoreAndAliasParameters createRequest()
          Deprecated. Creates the key tool request to execute.
 void execute()
          Deprecated. 
protected  String getCommandlineInfo(org.codehaus.plexus.util.cli.Commandline commandLine)
          Deprecated. Gets a string representation of a Commandline.
 String getKeystore()
          Deprecated.  
 File getWorkingDir()
          Deprecated.  
 void setAlias(String alias)
          Deprecated.  
 void setArguments(String[] arguments)
          Deprecated.  
 void setKeystore(String keystore)
          Deprecated.  
protected  void setKeyTool(KeyTool keyTool)
          Deprecated.  
 void setStorepass(String storepass)
          Deprecated.  
 void setStoretype(String storetype)
          Deprecated.  
 void setWorkingDir(File workingDir)
          Deprecated.  
 
Methods inherited from class org.codehaus.mojo.keytool.AbstractKeyToolMojo
getMessage, getMessage, getMessage, isSkip, isVerbose, setSkip, setVerbose
 
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

AbstractCmdLineKeyToolMojo

public AbstractCmdLineKeyToolMojo()
Deprecated. 
Method Detail

createRequest

protected abstract KeyToolRequestWithKeyStoreAndAliasParameters createRequest()
Deprecated. 
Creates the key tool request to execute.

Returns:
the request
Since:
1.1

execute

public final void execute()
                   throws MojoExecutionException
Deprecated. 

Throws:
MojoExecutionException

getKeystore

public final String getKeystore()
Deprecated. 
Returns:
Returns the keystore.

setKeystore

public final void setKeystore(String keystore)
Deprecated. 
Parameters:
keystore - The keystore to set.

getWorkingDir

public final File getWorkingDir()
Deprecated. 
Returns:
Returns the workingDirectory.

setWorkingDir

public final void setWorkingDir(File workingDir)
Deprecated. 
Parameters:
workingDir - The workingDirectory to set.

setStoretype

public void setStoretype(String storetype)
Deprecated. 
Parameters:
storetype - the storetype to set

setStorepass

public void setStorepass(String storepass)
Deprecated. 
Parameters:
storepass - the storepass to set

setAlias

public void setAlias(String alias)
Deprecated. 
Parameters:
alias - the alias to set

setArguments

public void setArguments(String[] arguments)
Deprecated. 
Parameters:
arguments - the arguments to set

setKeyTool

protected void setKeyTool(KeyTool keyTool)
Deprecated. 
Parameters:
keyTool - keyTool to set

getCommandlineInfo

protected String getCommandlineInfo(org.codehaus.plexus.util.cli.Commandline commandLine)
Deprecated. 
Gets a string representation of a Commandline.

This method creates the string representation by calling commandLine.toString() by default.

Parameters:
commandLine - The Commandline to get a string representation of (can not be null).
Returns:
The string representation of commandLine.

consumeResult

protected void consumeResult(KeyToolResult result)
                      throws MojoExecutionException
Deprecated. 
To consume the keytool comand execution.

Parameters:
result - result of the command line action
Throws:
MojoExecutionException - if the result is not 0 (means something bad occurs)

createParentDirIfNecessary

protected void createParentDirIfNecessary(String file)
Deprecated. 
Create the parent directory of the given file location.

Parameters:
file - file location to check


Copyright © 2005-2012 Codehaus. All Rights Reserved.