Use as a base class for extensions that will wrap tools.
This base class will also enable extensions to discover whether they are inside a task or a project.
Constructor and description |
---|
protected AbstractToolExtension
(Project project) Attach this extension to a project |
protected AbstractToolExtension
(Task task, String projectExtName) Attach this extension to a task |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
executable(java.util.Map<String, ?> opts) Set the parameters for location an executable. |
|
ResolvableExecutable |
getResolvableExecutable() Obtain a lazy-evaluated object to resolve a path to an executable. |
|
ExternalExecutable |
getResolver() Get access to object that can resolve an executable's location from a property map |
|
protected ResolverFactoryRegistry |
getResolverFactoryRegistry() Access to the registry of executable resolver factories. |
Methods inherited from class | Name |
---|---|
class AbstractCombinedProjectTaskExtension |
getProject, getProjectExtension, getTask, getValue, getValueByMethod |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Attach this extension to a project
project
- Project to attach to.Set the parameters for location an executable.
opts
- Options for locating the executable. The exact parameters are tool-specific.Obtain a lazy-evaluated object to resolve a path to an executable.
Get access to object that can resolve an executable's location from a property map
Access to the registry of executable resolver factories.
This is used to add additional factory types i.e. for version-based resolving.