Package org.grails.cli.profile
Interface ExecutionContext
-
- All Superinterfaces:
ProjectContext
public interface ExecutionContext extends ProjectContext
Context for the execution ofCommandinstances within aProfile
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddCancelledListener(CommandCancellationListener listener)Attaches a listener for cancellation eventsvoidcancel()Allows cancelling of the running commandorg.grails.build.parsing.CommandLinegetCommandLine()-
Methods inherited from interface org.grails.cli.profile.ProjectContext
getBaseDir, getConfig, getConsole, navigateConfig, navigateConfigForType
-
-
-
-
Method Detail
-
getCommandLine
org.grails.build.parsing.CommandLine getCommandLine()
- Returns:
- The parsed command line arguments as an instance of
CommandLine
-
cancel
void cancel()
Allows cancelling of the running command
-
addCancelledListener
void addCancelledListener(CommandCancellationListener listener)
Attaches a listener for cancellation events- Parameters:
listener- TheCommandCancellationListener
-
-