8294840: langtools OptionalDependencyTest.java use File.pathSeparator
Reviewed-by: alanb
This commit is contained in:
parent
ee6c39175b
commit
f531dae4a0
@ -30,6 +30,7 @@
|
||||
* @summary Tests optional dependency handling
|
||||
*/
|
||||
|
||||
import java.io.File;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.Set;
|
||||
@ -71,7 +72,7 @@ public class OptionalDependencyTest {
|
||||
*/
|
||||
@Test
|
||||
public void optionalDependenceNotResolved() {
|
||||
JdepsRunner jdepsRunner = new JdepsRunner("--module-path", "m2.jar:m3.jar",
|
||||
JdepsRunner jdepsRunner = new JdepsRunner("--module-path", "m2.jar" + File.pathSeparator + "m3.jar",
|
||||
"--inverse",
|
||||
"--package", "p2", "m1.jar");
|
||||
int rc = jdepsRunner.run(true);
|
||||
@ -83,7 +84,7 @@ public class OptionalDependencyTest {
|
||||
*/
|
||||
@Test
|
||||
public void optionalDependenceResolved() {
|
||||
JdepsRunner jdepsRunner = new JdepsRunner("--module-path", "m2.jar:m3.jar",
|
||||
JdepsRunner jdepsRunner = new JdepsRunner("--module-path", "m2.jar" + File.pathSeparator + "m3.jar",
|
||||
"--inverse", "--add-modules", "m3",
|
||||
"--package", "p2", "m1.jar");
|
||||
int rc = jdepsRunner.run(true);
|
||||
|
Loading…
Reference in New Issue
Block a user