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
osfile Macro does not create system specifc paths #5364
Comments
In Bnd all paths are forward slash so when macros process them, they don't need to worry. Windows accepts forward slash in files names, except for the command shell. So we do quoting on windows to handle paths with forward slash. bnd/aQute.libg/src/aQute/libg/command/Command.java Lines 95 to 104 in 09c46ea
So, Bnd always uses forward slashed in paths. |
Hmm, this does not seem to work for everything. If I try e.g. |
I think you are correct here for osfile as its purpose appears to be making os specific paths. c7f942b from 4 years ago is the where I changed this. Let me make a PR to change this back. |
Thanks heaps! |
bnd/biz.aQute.bndlib/src/aQute/bnd/osgi/Macro.java
Line 1474 in 09c46ea
I'm on Windows and I would expect that
${osfile;test;atest}
would produce a path with \ in it, but inIO.absolutPath
we finally do this:bnd/aQute.libg/src/aQute/lib/io/IO.java
Line 817 in 09c46ea
Which makes the whole thing do the opposite of what it should.
The text was updated successfully, but these errors were encountered: