File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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!(
You can’t perform that action at this time.
0 commit comments