sdedic commented on code in PR #4287:
URL: https://github.com/apache/netbeans/pull/4287#discussion_r909530953


##########
java/gradle.java/src/org/netbeans/modules/gradle/java/api/GradleJavaSourceSet.java:
##########
@@ -365,6 +366,33 @@ public boolean outputContains(File f) {
     public Set<File> getOutputClassDirs() {
         return outputClassDirs != null ? outputClassDirs : 
Collections.<File>emptySet();
     }
+    
+    /**
+     * Represents an unknown value. This is different from a value that is not 
present,
+     * i.e. an output directory for a language that is not used in the project.
+     * @since 1.19
+     */
+    public static final File UNKNOWN = new File("");
+    
+    /**
+     * Returns output directories for the given source type in the sourceset. 
Returns
+     * null, if the source type has no output directories. Returns UNKNOWN, if 
the 
+     * output location is not known.
+     * 
+     * @param srcType language type
+     * @return location or {@code null}.
+     * @since 1.19
+     */
+    public File getOutputClassDir(SourceType srcType) {
+        File f = outputs.get(srcType);
+        if (f == null) {

Review Comment:
   Fixed in 01cb17c54a



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

To unsubscribe, e-mail: [email protected]

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