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

Newly applying java plugin on an open Gradle Project doe not propagate the Java SourceGroups

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: projects - Gradle
    • Labels:
      None

      Description

      Let the issue 1 identified in NETBEANS-4938 live here.

       

      Issue number 1 is much harder and requires a good knowledge on how the Lookup system works.

      So the Lookup of NBGradleProjectImpl consists of a basic lookup created at: https://github.com/apache/netbeans/blob/3a2cad159a2a60665653ce83a67547f6744449ec/extide/gradle/src/org/netbeans/modules/gradle/NbGradleProjectImpl.java#L161 and a plugin dependent ProxyLookup at https://github.com/apache/netbeans/blob/3a2cad159a2a60665653ce83a67547f6744449ec/extide/gradle/src/org/netbeans/modules/gradle/NbGradleProjectImpl.java#L330

       

      The issue is the following:

      1. Project loads with no plugins, the base set of lookups registers a SourcesMerger
      2. Initially the only Sources implementation is for GENERIC_SOURCE_TYPE for the project folder.
      3. On reload through the PluginDependentLookup a new Sources implementation become available org.netbeans.modules.gradle.java.classpath.GradleSourcesImpl from the Gradle Java project
      4. Unfortunately the SourceMerger is not pick up the new Sources implementations

        Attachments

          Activity

            People

            • Assignee:
              jtulach Jaroslav Tulach
              Reporter:
              lkishalmi Laszlo Kishalmi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: