дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 01:31:41 +02:00
fix(java): normalize Maven system-scope jar paths on Windows
${pom.basedir}/src/main/... resolved to a path mixing \\ and /, so the launch classpath
held it in a different spelling than the module's paths (and the #7226 test failed on
Windows). The path is rebuilt from its components.
Цей коміт міститься в:
1 джерело
a9e92d0665
коміт
d838df534b
1 file changed
+3
-1
@@ -1555,7 +1555,9 @@ pub fn load_with_linked_jdk(
|
||||
.as_deref()
|
||||
.or_else(|| managed.get(&d.key()).and_then(|m| m.system_path.as_deref()))?;
|
||||
let path = i(path);
|
||||
(!path.contains("${") && Path::new(&path).is_absolute()).then(|| PathBuf::from(path))
|
||||
// Rebuilt from its components: `${pom.basedir}/lib/x.jar` on Windows mixes `\\` and `/`.
|
||||
(!path.contains("${") && Path::new(&path).is_absolute())
|
||||
.then(|| Path::new(&path).components().collect::<PathBuf>())
|
||||
})
|
||||
.collect();
|
||||
|
||||
|
||||
Reference in new issue
Заблокувати користувача