public interface JavaTool<Request extends JavaToolRequest>
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
AbstractJavaTooluse the command line API to execute any user requests of this tool.
|Modifier and Type||Method and Description|
Execute the input request and then returns the result of the execution.
Return the name of the java tool.
Set an optional tool chain to find out the java tool executable location.
jdk/bindirectory. For example:
jarsigner, keytool, javadoc, ...
void setToolchain(Object toolchain)
toolchain- optional tool chain to find out the java tool executable location. To avoid direct dependency on Maven core, this parameter is an Object that will be used as Toolchain through reflection
JavaToolResult execute(Request request) throws JavaToolException
JavaToolExceptionwill be thrown. If execution fails, then the result will have a none-zero
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
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.