lkishalmi commented on a change in pull request #2629:
URL: https://github.com/apache/netbeans/pull/2629#discussion_r550958303



##########
File path: extide/gradle/src/org/netbeans/modules/gradle/api/GradleProjects.java
##########
@@ -88,6 +93,36 @@ public static File getJavadoc(File binary) {
         return Collections.unmodifiableMap(ret);
     }
 
+    /**
+     * Returns the NetBeans project representation of the given Gradle project.
+     * If the given project is not a Gradle project it returns 
<code>null</code>,
+     * otherwise returns the Project which is assigned for the given project
+     * root directory.
+     *
+     * @param project the project to determine of its root.
+     *
+     * @return the root project or <code>null</code> if the given project is 
not
+     *         a Gradle project.
+     * @since 2.7
+     */
+    public static Project rootOf(Project project) {

Review comment:
       That's a good idea, I could implement that as well.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to