diff --git a/src/minimize_jdk.sh b/src/minimize_jdk.sh index b193f036b73bfd..7408b8b3a2e7ee 100755 --- a/src/minimize_jdk.sh +++ b/src/minimize_jdk.sh @@ -33,7 +33,8 @@ if [[ "$UNAME" =~ msys_nt* ]]; then ./bin/jlink --module-path ./jmods/ --add-modules "$modules" \ --vm=server --strip-debug --no-man-pages \ --output reduced - cp DISCLAIMER readme.txt reduced/ + cp DISCLAIMER readme.txt legal/java.base/ASSEMBLY_EXCEPTION \ + reduced/ zip -r -9 ../reduced.zip reduced/ cd .. mv reduced.zip "$out" @@ -43,7 +44,8 @@ else ./bin/jlink --module-path ./jmods/ --add-modules "$modules" \ --vm=server --strip-debug --no-man-pages \ --output reduced - cp DISCLAIMER readme.txt reduced/ + cp DISCLAIMER readme.txt legal/java.base/ASSEMBLY_EXCEPTION \ + reduced/ GZIP=-9 tar -zcf ../reduced.tgz reduced cd .. mv reduced.tgz "$out"