Commit 6788d88
committed
Fix Windows path separator in linked folder name
On Windows, Path.relativize() produces backslash separators
(e.g., ..\parent\src\main\java). The existing replace('/', '_')
only handled forward slashes, leaving backslashes intact. This
caused project.getFolder() to interpret '..' as parent traversal,
resulting in 'Cannot create linked resource' errors.
Replace both separators to produce correct link names on all platforms.1 parent a084130 commit 6788d88
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
1014 | | - | |
| 1014 | + | |
1015 | 1015 | | |
1016 | 1016 | | |
1017 | 1017 | | |
| |||
0 commit comments