public interface ProjectActionMappingProvider
GradleActionsProvider
-s.
This interface also can be used to query the Gradle command line arguments used for a specific action. Like:
Project project = some Gradle project String action = some IDE action Lookup context = Lookups.singleton(project); // The context of the action, it is advised to have the project in the context. ProjectActionMappingProvider pamp = project.getLookup().lookup(ProjectActionMappingProvider.class); ActionMapping actionMapping = pamp.findMapping(action); GradleCommandLine cli = new GradleCommandLine( RunUtils.evaluateAcrionArgs(project, actionMapping.getArgs(), action, context));
Since 2.14, the Provider may return a disabled ActionMapping
. Check using
RunUtils#isActionDisabled
, rather than just == null
.
Modifier and Type | Method and Description |
---|---|
Set<String> |
customizedActions()
Get the list of those actions which has been customized.
|
ActionMapping |
findMapping(String action)
Try to find an ActionMapping for the given action.
|
ActionMapping findMapping(String action)
null
.action
- the action namenull
if none found