If the command to be executed is a built-in task, then the {@code commandContext} is the {@code Lookup}, NetBeans passes to the {@link org.netbeans.spi.project.ActionProvider}. Otherwise it is an empty {@code Lookup}.
Note that {@code Lookup} will always contain an instance of{@link NbCommandString} which specifies the command string passed to the{@link org.netbeans.spi.project.ActionProvider ActionProvider} implementation. @param project the Gradle project in which context the command isexecuted. This is similar to executing a command from the command line from the directory of this project. This argument cannot be {@code null}. @param commandContext the context when the command was started. Thisargument cannot be {@code null}. @return the {@link ContextAwareCommandFinalizer} which is to be notifiedif the Gradle command completes successfully. This method may never return {@code null}. @see NbCommandString
|
|