This is an automated email from the ASF dual-hosted git repository.

lkishalmi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 83ec9c9  Trivial enhancement to have Gradle Sourcegroup presentation 
more informative.
83ec9c9 is described below

commit 83ec9c9cc61d3312088c467d049b277d4afea791
Author: Laszlo Kishalmi <laszlo.kisha...@gmail.com>
AuthorDate: Fri Jun 7 20:03:00 2019 -0700

    Trivial enhancement to have Gradle Sourcegroup presentation more 
informative.
---
 .../org/netbeans/modules/gradle/java/classpath/GradleSourcesImpl.java  | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/groovy/gradle.java/src/org/netbeans/modules/gradle/java/classpath/GradleSourcesImpl.java
 
b/groovy/gradle.java/src/org/netbeans/modules/gradle/java/classpath/GradleSourcesImpl.java
index 5f1d236..6021d19 100644
--- 
a/groovy/gradle.java/src/org/netbeans/modules/gradle/java/classpath/GradleSourcesImpl.java
+++ 
b/groovy/gradle.java/src/org/netbeans/modules/gradle/java/classpath/GradleSourcesImpl.java
@@ -206,6 +206,9 @@ public class GradleSourcesImpl implements Sources, 
SourceGroupModifierImplementa
         }
         String llang = lang.name().toLowerCase();
         String ggroup = Utils.camelCaseToTitle(group);
+        if (!unique && llang.equals(dir.getName())) {
+            dir = dir.getParentFile() != null ? dir.getParentFile() : dir;
+        }
 
         return NbBundle.getMessage(GradleSourcesImpl.class, key.toString(),
                 ggroup, llang, dir.getName());


---------------------------------------------------------------------
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