Package org.apache.maven.api
Interface Toolchain
- All Known Subinterfaces:
JavaToolchain
Toolchain interface.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionGets the platform tool executable.getType()
get the type of toolchain.boolean
matchesRequirements
(Map<String, String> requirements) Let the toolchain decide if it matches requirements defined in the toolchain plugin configuration.
-
Method Details
-
getType
String getType()get the type of toolchain.- Returns:
- the toolchain type
-
findTool
Gets the platform tool executable.- Parameters:
toolName
- the tool platform independent tool name- Returns:
- file representing the tool executable, or null if the tool cannot be found
-
matchesRequirements
Let the toolchain decide if it matches requirements defined in the toolchain plugin configuration.- Parameters:
requirements
- Map<String, String> key value pair, may not benull
- Returns:
true
if the requirements match, otherwisefalse
-