You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2025/05/30 11:18:52 UTC
(maven-wagon) branch deprec created (now e7105cc2)
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a change to branch deprec
in repository https://gitbox.apache.org/repos/asf/maven-wagon.git
at e7105cc2 [WAGON-643] deprecate toRelative in favor of JDK relativize
This branch includes the following new commits:
new e7105cc2 [WAGON-643] deprecate toRelative in favor of JDK relativize
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(maven-wagon) 01/01: [WAGON-643] deprecate toRelative in favor of JDK relativize
Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch deprec
in repository https://gitbox.apache.org/repos/asf/maven-wagon.git
commit e7105cc2961011e2ea704e468c564eff6dc43b8c
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Fri May 30 07:18:39 2025 -0400
[WAGON-643] deprecate toRelative in favor of JDK relativize
---
.../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 998bca05..6e6ab806 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;