public class DefaultJarSigner extends org.codehaus.plexus.logging.AbstractLogEnabled implements JarSigner
JarSigner.
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
jarSignerFile
The location of the jarSigner executable file.
|
| Constructor and Description |
|---|
DefaultJarSigner() |
| Modifier and Type | Method and Description |
|---|---|
protected Commandline |
createCommandLine(JarSignerRequest request) |
JarSignerResult |
execute(JarSignerRequest request)
Executes JarSigner tool using the parameters specified by the given invocation request.
|
protected JarSignerResult |
executeCommandLine(Commandline cli,
JarSignerRequest request) |
protected String |
findExecutable(String command,
String homeDir,
String[] subDirs)
Finds the specified command in any of the given sub directories of the specified JDK/JRE home directory.
|
protected String |
findJarSignerExecutable() |
protected String jarSignerFile
public JarSignerResult execute(JarSignerRequest request) throws JarSignerException
JarSignerexecute in interface JarSignerrequest - The invocation request to execute, must not be null.null.JarSignerException - if something fails while init the commandprotected Commandline createCommandLine(JarSignerRequest request) throws JarSignerException
JarSignerExceptionprotected JarSignerResult executeCommandLine(Commandline cli, JarSignerRequest request)
protected String findJarSignerExecutable() throws IOException
IOExceptionprotected String findExecutable(String command, String homeDir, String[] subDirs)
command - The command to find, must not be null.homeDir - The home directory to search in, may be null.subDirs - The sub directories of the home directory to search in, must not be null.null otherwise.Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.