|
16 | 16 | package com.sun.ts.run; |
17 | 17 |
|
18 | 18 | import com.sun.ts.lib.harness.ExecTSTestCmd; |
| 19 | +import com.sun.javatest.Status; |
19 | 20 |
|
20 | 21 | import java.io.IOException; |
21 | 22 | import java.io.OutputStreamWriter; |
@@ -80,13 +81,14 @@ List<String> getJavaOptions() { |
80 | 81 | "-Djava.util.logging.config.file=" + System.getProperty("glassfish.home") + "/glassfish/domains/domain1/config/logging.properties", |
81 | 82 | "-Dtest.ejb.stateful.timeout.wait.seconds=180 ", |
82 | 83 | "-Ddeliverable.class=com.sun.ts.lib.deliverable.cts.CTSDeliverable", |
83 | | - |
| 84 | + "--module-path", System.getProperty("glassfish.home") + "/glassfish/lib/bootstrap", |
| 85 | + "--add-modules", "ALL-MODULE-PATH", |
84 | 86 | "--add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED", |
85 | 87 | "--add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED", |
86 | 88 | "--add-opens=java.base/java.lang=ALL-UNNAMED", |
87 | 89 | "--add-opens=java.base/java.util=ALL-UNNAMED", |
88 | 90 | "--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED", |
89 | | - "--add-opens=java.naming/javax.naming.spi=ALL-UNNAMED") |
| 91 | + "--add-opens=java.naming/javax.naming.spi=org.glassfish.main.jdke") |
90 | 92 | ; |
91 | 93 |
|
92 | 94 | if (System.getProperty("maven.tck.debug") != null && !System.getProperty("maven.tck.debug").isEmpty()) { |
@@ -124,10 +126,8 @@ String getClassPath() { |
124 | 126 |
|
125 | 127 | return String.join(":", List.of( |
126 | 128 | localRepository + "/org/glassfish/main/tests/tck/tsharness/" + glassfishVersion + "/tsharness-" + glassfishVersion + ".jar", |
127 | | - localRepository + "/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.jar", |
128 | 129 | System.getProperty("glassfish.home") + "/glassfish/lib/embedded/glassfish-embedded-static-shell.jar", |
129 | 130 | copiedEjbJar.toString() |
130 | 131 | )); |
131 | 132 | } |
132 | | - |
133 | 133 | } |
0 commit comments