|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JavaTool<Request extends JavaToolRequest>
Describes a java tool, means a executable available in the jdk.
The name of the tool (getJavaToolName()
) reflects the name of the executable that should exists as an
executable in the jdk, like jarsigner, keytool, javadoc, ...
.
An abstract implementation of the JavaTool
named AbstractJavaTool
use the command line API to execute
any user requests of this tool.
Method Summary | |
---|---|
JavaToolResult |
execute(Request request)
Execute the input request and then returns the result of the execution. |
String |
getJavaToolName()
Return the name of the java tool. |
void |
setToolchain(org.apache.maven.toolchain.Toolchain toolchain)
Set an optional tool chain to find out the java tool executable location. |
Method Detail |
---|
String getJavaToolName()
jdk/bin
directory.
For example: jarsigner, keytool, javadoc, ...
void setToolchain(org.apache.maven.toolchain.Toolchain toolchain)
toolchain
- optional tool chain to find out the java tool executable location.JavaToolResult execute(Request request) throws JavaToolException
JavaToolException
will be thrown.
If execution fails, then the result will have a none-zero JavaToolResult.getExitCode()
and his
JavaToolResult.getExecutionException()
will be filled with the error, otherwise the exist code will be zero.
request
- the request to perform
JavaToolException
- if could not create the java tool invocation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |