slawekjaranowski commented on code in PR #2275:
URL: https://github.com/apache/maven/pull/2275#discussion_r2059762299


##########
maven-core/src/main/java/org/apache/maven/project/MavenProject.java:
##########
@@ -296,14 +296,40 @@ private void addPath(List<String> paths, String path) {
         }
     }
 
+    private void removePath(List<String> paths, String path) {
+        if (path != null) {
+            path = path.trim();
+            if (!path.isEmpty()) {
+                File file = new File(path);
+                if (file.isAbsolute()) {
+                    path = file.getAbsolutePath();
+                } else if (".".equals(path)) {
+                    path = getBasedir().getAbsolutePath();
+                } else {
+                    path = new File(getBasedir(), path).getAbsolutePath();
+                }
+
+                paths.remove(path);
+            }
+        }
+    }
+
     public void addCompileSourceRoot(String path) {
         addPath(getCompileSourceRoots(), path);
     }
 
+    public void removeCompileSourceRoot(String path) {

Review Comment:
   javadoc with since will be appreciated



-- 
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: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to