Svatopluk Dedic created NETBEANS-6387:
-----------------------------------------

             Summary: Explicit representation of disabled actions, Maven-Gradle 
consistency
                 Key: NETBEANS-6387
                 URL: https://issues.apache.org/jira/browse/NETBEANS-6387
             Project: NetBeans
          Issue Type: Improvement
          Components: projects - Gradle, projects - Maven
    Affects Versions: 12.5, 12.6
            Reporter: Svatopluk Dedic
            Assignee: Svatopluk Dedic


Concept of *disabled* *actions* was introduced primarily as a way how a plugin 
in a specific *provided* configuration could disable certain predefined 
actions, bcs they do not make sense in that configuration.

The examples are Development mode (continuous build) provided natively by 
Gradle, and a Development mode that Micronaut plugin provides for Maven: In 
both cases, *Debug* makes only a little sense, as a change in the source will 
result in VM restart - this is  inconvenient in debug mode to the degree that 
I/we decided to disable the action by default.

As the feature was implemented at the end of the release cycle, the disabled 
actions are identified by existing action mapping poperties. For gradle it is 
no task + reload_never, for maven no goals.

This is not optimal, as it prevents user from half-defining the actions, 
complicates new action creation and also mangles action definition so if a 
(builtin) action is customized, then disabled, and re-enabled, the 
customizations are gone (or may be gone, if the customized properties are the 
ones used to indicate disabled status).
 * The property should be explicit
 * both Maven | Gradle should allow to disable actions in any (not just 
non-default) configurations, if possible.
 * User actions should be allowed to be disabled as well
 * *Disabled* actions should not be presented in popup goals/tasks submenu on a 
project

// cc: [~lkishalmi]  for feature comments



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to