|
12 | 12 |
|
13 | 13 | <name>webrtc-java</name> |
14 | 14 |
|
| 15 | + <properties> |
| 16 | + <!-- The JVM arguments of every test run, the jni-check profile's |
| 17 | + included. add-modules and add-reads: see the test compilation |
| 18 | + below. add-exports: dev.onvoid.webrtc.internal is not exported to |
| 19 | + applications, but the tests cover NativeApi, which native extension |
| 20 | + modules use to reach the native sources. --> |
| 21 | + <webrtc.test.argLine> |
| 22 | + --add-modules java.desktop |
| 23 | + --add-reads webrtc.java=java.desktop |
| 24 | + --add-exports webrtc.java/dev.onvoid.webrtc.internal=ALL-UNNAMED |
| 25 | + --add-opens webrtc.java/dev.onvoid.webrtc=ALL-UNNAMED |
| 26 | + --add-opens webrtc.java/dev.onvoid.webrtc.logging=ALL-UNNAMED |
| 27 | + --add-opens webrtc.java/dev.onvoid.webrtc.media=ALL-UNNAMED |
| 28 | + --add-opens webrtc.java/dev.onvoid.webrtc.media.audio=ALL-UNNAMED |
| 29 | + --add-opens webrtc.java/dev.onvoid.webrtc.media.video=ALL-UNNAMED |
| 30 | + </webrtc.test.argLine> |
| 31 | + </properties> |
| 32 | + |
15 | 33 | <build> |
16 | 34 | <plugins> |
17 | 35 | <!-- The module does not read java.desktop, but a desktop capture test |
|
37 | 55 | <groupId>org.apache.maven.plugins</groupId> |
38 | 56 | <artifactId>maven-surefire-plugin</artifactId> |
39 | 57 | <configuration> |
40 | | - <!-- add-exports: dev.onvoid.webrtc.internal is not exported to |
41 | | - applications, but the tests cover NativeApi, which native |
42 | | - extension modules use to reach the native sources. |
43 | | - add-reads: see the test compilation above. --> |
44 | | - <argLine> |
45 | | - --add-modules java.desktop |
46 | | - --add-reads webrtc.java=java.desktop |
47 | | - --add-exports webrtc.java/dev.onvoid.webrtc.internal=ALL-UNNAMED |
48 | | - --add-opens webrtc.java/dev.onvoid.webrtc=ALL-UNNAMED |
49 | | - --add-opens webrtc.java/dev.onvoid.webrtc.logging=ALL-UNNAMED |
50 | | - --add-opens webrtc.java/dev.onvoid.webrtc.media=ALL-UNNAMED |
51 | | - --add-opens webrtc.java/dev.onvoid.webrtc.media.audio=ALL-UNNAMED |
52 | | - --add-opens webrtc.java/dev.onvoid.webrtc.media.video=ALL-UNNAMED |
53 | | - </argLine> |
| 58 | + <argLine>${webrtc.test.argLine}</argLine> |
54 | 59 | </configuration> |
55 | 60 | </plugin> |
56 | 61 | </plugins> |
|
93 | 98 | <artifactId>maven-surefire-plugin</artifactId> |
94 | 99 | <configuration> |
95 | 100 | <forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory" /> |
96 | | - <argLine> |
97 | | - -Xcheck:jni |
98 | | - --add-modules java.desktop |
99 | | - --add-reads webrtc.java=java.desktop |
100 | | - --add-exports webrtc.java/dev.onvoid.webrtc.internal=ALL-UNNAMED |
101 | | - --add-opens webrtc.java/dev.onvoid.webrtc=ALL-UNNAMED |
102 | | - --add-opens webrtc.java/dev.onvoid.webrtc.logging=ALL-UNNAMED |
103 | | - --add-opens webrtc.java/dev.onvoid.webrtc.media=ALL-UNNAMED |
104 | | - --add-opens webrtc.java/dev.onvoid.webrtc.media.audio=ALL-UNNAMED |
105 | | - --add-opens webrtc.java/dev.onvoid.webrtc.media.video=ALL-UNNAMED |
106 | | - </argLine> |
| 101 | + <argLine>-Xcheck:jni ${webrtc.test.argLine}</argLine> |
107 | 102 | </configuration> |
108 | 103 | </plugin> |
109 | 104 | </plugins> |
|
0 commit comments