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

elharo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-wagon.git


The following commit(s) were added to refs/heads/master by this push:
     new 41507c63 [WAGON-643] deprecate toRelative in favor of JDK relativize 
(#162)
41507c63 is described below

commit 41507c636bec8b666facd9d71de6a45130213b44
Author: Elliotte Rusty Harold <elh...@users.noreply.github.com>
AuthorDate: Sat May 31 12:12:33 2025 +0000

    [WAGON-643] deprecate toRelative in favor of JDK relativize (#162)
---
 .../src/main/java/org/apache/maven/wagon/PathUtils.java              | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/wagon-provider-api/src/main/java/org/apache/maven/wagon/PathUtils.java 
b/wagon-provider-api/src/main/java/org/apache/maven/wagon/PathUtils.java
index 2df6a546..9c05eba4 100644
--- a/wagon-provider-api/src/main/java/org/apache/maven/wagon/PathUtils.java
+++ b/wagon-provider-api/src/main/java/org/apache/maven/wagon/PathUtils.java
@@ -397,7 +397,10 @@ public static String password(String url) {
         return null;
     }
 
-    // TODO: move to plexus-utils or use something appropriate from there
+    /**
+     * @deprecated use {@link 
java.nio.file.Path#relativize(java.nio.file.Path)} instead
+     */
+    @Deprecated
     public static String toRelative(File basedir, String absolutePath) {
         String relative;
 

Reply via email to