Skip to content

Commit 86bfa70

Browse files
committed
joinds
1 parent 4aa91fe commit 86bfa70

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

plugins/java/src/ant.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,11 @@ impl JavaPlugin for AntPlugin {
166166
}
167167
paths.push(lib_dir);
168168

169-
paths.push(path.join("build/test/classes"));
170-
paths.push(path.join("build/classes"));
169+
paths.push(path.join("build").join("test").join("classes"));
170+
paths.push(path.join("build").join("classes"));
171171

172172
let java_home = Self::get_java_home()?;
173-
let tools_jar_path = java_home.join("../lib/tools.jar");
173+
let tools_jar_path = java_home.join("..").join("lib").join("tools.jar");
174174
if tools_jar_path.exists() {
175175
paths.push(tools_jar_path);
176176
} else {
@@ -335,8 +335,9 @@ mod test {
335335
);
336336
assert!(
337337
cp.contains(&format!("{0}{1}build{1}classes", test_path.display(), sep)),
338-
"Classpath {} did not contain build/classes",
339-
cp
338+
"Classpath {} did not contain build{}classes",
339+
cp,
340+
sep
340341
);
341342
assert!(
342343
cp.contains(&format!(

0 commit comments

Comments
 (0)