From 939190d62e6dafb445735ca9f2d3e6339bbf0657 Mon Sep 17 00:00:00 2001 From: ShammiL Date: Tue, 13 Aug 2024 10:34:16 +0530 Subject: [PATCH] change 1 --- .github/workflows/all-tests.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/all-tests.yml b/.github/workflows/all-tests.yml index 95d8162bf2..d7651c5251 100644 --- a/.github/workflows/all-tests.yml +++ b/.github/workflows/all-tests.yml @@ -15,9 +15,14 @@ jobs: distribution: 'adopt' java-version: 11 - name: Set JAVA_TOOL_OPTIONS - run: echo "JAVA_TOOL_OPTIONS='${JAVA_TOOL_OPTIONS:-} -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true --add-opens=java.base/java.net=ALL-UNNAMED'" >> $GITHUB_ENV + run: | + echo "old JAVA_TOOL_OPTIONS: ${{ env.JAVA_TOOL_OPTIONS }}" + NEW_JAVA_TOOL_OPTIONS="${{ env.JAVA_TOOL_OPTIONS }} -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true --add-opens=java.base/java.net=ALL-UNNAMED" + echo "JAVA_TOOL_OPTIONS=$NEW_JAVA_TOOL_OPTIONS" >> $GITHUB_ENV - name: Build with Maven - run: mvn -B clean install --file pom.xml -fae + run: | + echo "old JAVA_TOOL_OPTIONS: ${{ env.JAVA_TOOL_OPTIONS }}" + mvn -B clean install --file pom.xml -fae env: JAVA_TOOL_OPTIONS: ${{ env.JAVA_TOOL_OPTIONS }} @@ -33,9 +38,14 @@ jobs: distribution: 'adopt' java-version: 11 - name: Set JAVA_TOOL_OPTIONS - run: echo "JAVA_TOOL_OPTIONS='${JAVA_TOOL_OPTIONS:-} -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true --add-opens=java.base/java.net=ALL-UNNAMED'" >> $GITHUB_ENV + run: | + echo "old JAVA_TOOL_OPTIONS: ${{ env.JAVA_TOOL_OPTIONS }}" + NEW_JAVA_TOOL_OPTIONS="${{ env.JAVA_TOOL_OPTIONS }} -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true --add-opens=java.base/java.net=ALL-UNNAMED" + echo "JAVA_TOOL_OPTIONS=$NEW_JAVA_TOOL_OPTIONS" >> $GITHUB_ENV - name: Build with Maven - run: mvn -B clean install --file pom.xml -fae + run: | + echo "old JAVA_TOOL_OPTIONS: ${{ env.JAVA_TOOL_OPTIONS }}" + mvn -B clean install --file pom.xml -fae env: JAVA_TOOL_OPTIONS: ${{ env.JAVA_TOOL_OPTIONS }} @@ -54,7 +64,7 @@ jobs: distribution: 'adopt' java-version: 11 - name: Set JAVA_TOOL_OPTIONS - run: echo "JAVA_TOOL_OPTIONS=%JAVA_TOOL_OPTIONS% -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true --add-opens=java.base/java.net=ALL-UNNAMED" >> $GITHUB_ENV + run: echo "JAVA_TOOL_OPTIONS=%JAVA_TOOL_OPTIONS% -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true --add-opens=java.base/java.net=ALL-UNNAMED" >> $env:GITHUB_ENV - name: Build with Maven run: mvn -B clean install --file pom.xml -fae env: