From 913eb04b07064abc6422e5dd6824a7062afb6238 Mon Sep 17 00:00:00 2001 From: BJ Hargrave Date: Fri, 2 Sep 2022 09:59:23 -0400 Subject: [PATCH] macro: Fix osfile macro to return OS specific path https://github.com/bndtools/bnd/commit/c7f942b0d4fe67403ec0de949dd8e90d5d0069e2 incorrectly changed osfile to use forward slash path. Fixes https://github.com/bndtools/bnd/issues/5364 Signed-off-by: BJ Hargrave --- biz.aQute.bndlib/src/aQute/bnd/osgi/Macro.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/biz.aQute.bndlib/src/aQute/bnd/osgi/Macro.java b/biz.aQute.bndlib/src/aQute/bnd/osgi/Macro.java index e9ecd39e56..197f180168 100644 --- a/biz.aQute.bndlib/src/aQute/bnd/osgi/Macro.java +++ b/biz.aQute.bndlib/src/aQute/bnd/osgi/Macro.java @@ -1471,7 +1471,7 @@ public String _osfile(String[] args) { verifyCommand(args, _osfileHelp, null, 3, 3); File base = new File(args[1]); File f = IO.getFile(base, args[2]); - return IO.absolutePath(f); + return f.getAbsolutePath(); // Need to return path in OS specific form } public String _path(String[] args) {