Class ShellInvoker
java.lang.Object
org.apache.maven.cling.invoker.LookupInvoker<LookupContext>
org.apache.maven.cling.invoker.mvnsh.ShellInvoker
- All Implemented Interfaces:
AutoCloseable, org.apache.maven.api.cli.Invoker
mvnsh invoker implementation.
-
Field Summary
FieldsFields inherited from class LookupInvoker
contextConsumer, protoLookup -
Constructor Summary
ConstructorsConstructorDescriptionShellInvoker(org.apache.maven.api.services.Lookup protoLookup, Consumer<LookupContext> contextConsumer) -
Method Summary
Modifier and TypeMethodDescriptionprotected LookupContextcreateContext(org.apache.maven.api.cli.InvokerRequest invokerRequest) protected intexecute(LookupContext context) Methods inherited from class LookupInvoker
activateLogging, calculateDegreeOfConcurrency, configureLogging, container, createContainerCapsuleFactory, createCoreExtensionSelector, createTerminal, customizeSettingsRequest, customizeSettingsResult, describe, determineBuildEventListener, determineWriter, doConfigureWithTerminal, doConfigureWithTerminalWithRawStreamsDisabled, doConfigureWithTerminalWithRawStreamsEnabled, doCreateTerminal, doDetermineBuildEventListener, doDetermineWriter, doInvoke, handleException, helpOrVersionAndMayExit, init, invoke, localRepositoryPath, lookup, mayDisableInteractiveMode, populateRequest, populateRequestFromSettings, postCommands, postContainer, preCommands, printErrors, pushCoreProperties, pushUserProperties, settings, settings, setupGuiceClassLoading, showVersion, validateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.api.cli.Invoker
close
-
Field Details
-
OK
public static final int OK- See Also:
-
ERROR
public static final int ERROR- See Also:
-
-
Constructor Details
-
ShellInvoker
public ShellInvoker(org.apache.maven.api.services.Lookup protoLookup, @Nullable Consumer<LookupContext> contextConsumer)
-
-
Method Details
-
createContext
- Specified by:
createContextin classLookupInvoker<LookupContext>
-
execute
- Specified by:
executein classLookupInvoker<LookupContext>- Throws:
Exception
-