Порівняти коміти

...
Автор SHA1 Повідомлення Дата
l0ng-ai c6b8d23159 test(java): build the expected system jar path with native separators 2026-12-01 21:35:49 +08:00
l0ng-ai d838df534b 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.
2026-12-01 21:35:11 +08:00
2 змінених файлів з 4 додано та 2 видалено

No files matched your search

+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();
+1 -1
Переглянути файл
@@ -1292,7 +1292,7 @@ mod tests {
fn java_server_launch_classpath_includes_local_maven_system_jars() {
let tmp = tempfile::tempdir().unwrap();
let root = dunce::canonicalize(tmp.path()).unwrap();
let jar = root.join("src/main/resources/lib/offline.jar");
let jar = ["src", "main", "resources", "lib", "offline.jar"].iter().fold(root.clone(), |p, c| p.join(c));
std::fs::create_dir_all(jar.parent().unwrap()).unwrap();
std::fs::write(&jar, "").unwrap();
std::fs::write(