Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macro: Fix osfile macro to return OS specific path #5366

Merged
merged 1 commit into from
Sep 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
macro: Fix osfile macro to return OS specific path
c7f942b
incorrectly changed osfile to use forward slash path.

Fixes #5364

Signed-off-by: BJ Hargrave <bj@hargrave.dev>
  • Loading branch information
bjhargrave committed Sep 2, 2022
commit 913eb04b07064abc6422e5dd6824a7062afb6238
2 changes: 1 addition & 1 deletion biz.aQute.bndlib/src/aQute/bnd/osgi/Macro.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down