tiagobento commented on issue #783:
URL:
https://github.com/apache/incubator-kie-issues/issues/783#issuecomment-1871525975
After doing more and more experiments, @ljmotta and I agreed to introduce
some more details to path string variable/property names.
We need to differentiate between POSIX and OS-specific paths, and also
between normalized and "explicitly relative" paths.
1.
- `posixPathRelativeToXXX` --> POSIX paths always use forward slashes ("/")
- `fsPathRelativeToXXX` (Following VS Code's convention for the Uri type)
--> platform-specific paths can use forward slashes (`/`) and backslashes
(`\`).
2.
- `normalizedPathRelativeToXXX` --> Normalized relative paths never start
with `./`, but may start with `../`.
- `pathExplictlyRelativeToXXX` --> "Explicitly relative" paths always start
with either `./` or `../`.
---
Combining the two new discriminators, we have:
1. `normalizedPosixPathRelativeToXXX`
2. `posixPathExplicitlyRelativeToXXX`
3. `normalizedFsPathRelativeToXXX`
4. `normalizedFsPathRelativeToXXX`
Of course, for absolute paths, we can only discriminate between POSIX and
platform-specific.
1. `posixAbsolutePath`
1. `fsAbsolutePath`
---
That's the current state of this, at least. I'm sure we're gonna find more
to it :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]