errael commented on a change in pull request #2331:
URL: https://github.com/apache/netbeans/pull/2331#discussion_r488246925
##########
File path:
javafx/javafx2.project/src/org/netbeans/modules/javafx2/project/JFXProjectUtils.java
##########
@@ -1776,5 +1779,17 @@ public Void run() throws Exception {
}
}
}
+
+ private static final String MODULE_INFO = "module-info.java"; // NOI18N
+
+ // as in
org.netbeans.modules.maven.api.ModuleInfoUtils.hasModuleInfoInSource;
+ public static boolean hasModuleInfo(SourceGroupSupport support) {
+ for (File sourceRoot : support.getSourceGroupsAsFiles()) {
+ if (new File(sourceRoot, MODULE_INFO).exists()) {
Review comment:
Excellent. Thanks. Had to go through SourceGroupProxy, but...
@sdedic could you re-review with suggested changes?
----------------------------------------------------------------
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