Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit 39bd828

Browse files
committed
debugs
Signed-off-by: Damien Duportal <[email protected]>
1 parent 3b354d5 commit 39bd828

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

maven/jdk11/Dockerfile.nanoserver

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ ENV JAVA_HOME="C:\tools\jdk-11"
2828
RUN New-Item -ItemType Directory -Path C:\temp | Out-Null ; `
2929
$msiUrl = 'https://api.adoptium.net/v3/installer/version/jdk-{0}/windows/x64/jdk/hotspot/normal/eclipse?project=jdk' -f $env:JAVA_VERSION.Replace('+', '%2B') ; `
3030
Invoke-WebRequest $msiUrl -OutFile 'C:\temp\jdk.msi' ; `
31-
$proc = Start-Process -FilePath 'msiexec.exe' -ArgumentList '/i', 'C:\temp\jdk.msi', '/L*V', 'C:\temp\OpenJDK.log', '/quiet', 'ADDLOCAL=FeatureEnvironment,FeatureJarFileRunWith,FeatureJavaHome', "INSTALLDIR=$env:JAVA_HOME" -Wait -Passthru ; `
31+
New-Item -ItemType "directory" -Path $env:JAVA_HOME ; `
32+
$proc = Start-Process -FilePath 'msiexec.exe' -ArgumentList '/i', 'C:\temp\jdk.msi', '/L*V', 'C:\temp\OpenJDK.log', '/quiet', 'ADDLOCAL=FeatureEnvironment,FeatureJarFileRunWith,FeatureJavaHome', 'INSTALLDIR=C:\tools\jdk-11' -Wait -Passthru ; `
3233
$proc.WaitForExit() ; `
3334
Remove-Item -Path C:\temp -Recurse | Out-Null
3435

maven/jdk17/Dockerfile.nanoserver

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ ENV JAVA_HOME="C:\tools\jdk-17"
2828
RUN New-Item -ItemType Directory -Path C:\temp | Out-Null ; `
2929
$msiUrl = 'https://api.adoptium.net/v3/installer/version/jdk-{0}/windows/x64/jdk/hotspot/normal/eclipse?project=jdk' -f $env:JAVA_VERSION.Replace('+', '%2B') ; `
3030
Invoke-WebRequest $msiUrl -OutFile 'C:\temp\jdk.msi' ; `
31+
New-Item -ItemType "directory" -Path $env:JAVA_HOME ; `
3132
$proc = Start-Process -FilePath 'msiexec.exe' -ArgumentList '/i', 'C:\temp\jdk.msi', '/L*V', 'C:\temp\OpenJDK.log', '/quiet', 'ADDLOCAL=FeatureEnvironment,FeatureJarFileRunWith,FeatureJavaHome', "INSTALLDIR=$env:JAVA_HOME" -Wait -Passthru ; `
3233
$proc.WaitForExit() ; `
3334
Remove-Item -Path C:\temp -Recurse | Out-Null

0 commit comments

Comments
 (0)