Skip to content

Commit

Permalink
Include jdk.crypto.mscapi in minimized Windows embedded JDK
Browse files Browse the repository at this point in the history
Fixes: bazelbuild#15305

Closes bazelbuild#15306.

PiperOrigin-RevId: 443624925
  • Loading branch information
foxandi authored and copybara-github committed Apr 22, 2022
1 parent 26ed88d commit c94572b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/minimize_jdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ if [[ "$UNAME" =~ msys_nt* ]]; then
cd "tmp.$$"
unzip "../$fulljdk"
cd $FULL_JDK_DIR
# We have to add this module explicitly because it is windows specific, it allows
# the usage of the Windows truststore
# e.g. -Djavax.net.ssl.trustStoreType=WINDOWS-ROOT
modules="$modules,jdk.crypto.mscapi"
./bin/jlink --module-path ./jmods/ --add-modules "$modules" \
--vm=server --strip-debug --no-man-pages \
--output reduced
Expand Down

0 comments on commit c94572b

Please sign in to comment.