Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2960

Need a force reload action for Gradle projects

    XMLWordPrintableJSON

Details

    Description

      I have a multi-project gradle build with a settings.gradle implementation that auto-detects the subprojects.  So whenever a subproject gets added/removed/renamed (either directly, or as the result of a git branch checkout), the root project build.gradle and settings.gradle do not need to be modified at all.

      Currently, the gradle support assumes that projects only need to be reloaded when build.gradle or settings.gradle change, but my build breaks this assumption.

      So the behavior in my case is that I am not even able to manually browse to a new subproject and open it, until after I make a meaningless edit to build.gradle or settings.gradle.  The new subproject folder is not even recognized as a gradle project in the "open project" dialog until I have touched one of those files.

      This behavior is broken.  Ideally, projects that come and go would automatically get noticed, and the IDE would update immediately.  But assuming that's non-trivial to implement, it would be acceptable to simply add a manually-triggerable "force project reload" action somewhere in the GUI, so that the user can get back into a good state without the need to touch any files.

       

      Thanks!

      Attachments

        Issue Links

          Activity

            People

              lkishalmi Laszlo Kishalmi
              Furrer Travis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m