jdk/test/java/security/modules/ModularTest.java
changeset 40261 86a49ba76f52
parent 39774 25d5618feb3c
child 42338 a60f280f803c
equal deleted inserted replaced
40260:4e69b50ccd97 40261:86a49ba76f52
   135             Map<String, String> vmArgs, String... options) throws IOException {
   135             Map<String, String> vmArgs, String... options) throws IOException {
   136 
   136 
   137         final StringJoiner command = new StringJoiner(SPACE, SPACE, SPACE);
   137         final StringJoiner command = new StringJoiner(SPACE, SPACE, SPACE);
   138         vmArgs.forEach((key, value) -> command.add(key + value));
   138         vmArgs.forEach((key, value) -> command.add(key + value));
   139         if (modulePath != null) {
   139         if (modulePath != null) {
   140             command.add("-mp").add(modulePath.toFile().getCanonicalPath());
   140             command.add("--module-path").add(modulePath.toFile().getCanonicalPath());
   141         }
   141         }
   142         if (classPath != null && classPath.length() > 0) {
   142         if (classPath != null && classPath.length() > 0) {
   143             command.add("-cp").add(classPath);
   143             command.add("-cp").add(classPath);
   144         }
   144         }
   145         if (clientModuleName != null && clientModuleName.length() > 0) {
   145         if (clientModuleName != null && clientModuleName.length() > 0) {