mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
Added java 13 package in VM (#795)
* Added java 13 package in VM * Fixed var name * Make changes from 11 to 13 * added java 13 for validate-javatool
This commit is contained in:
@@ -36,6 +36,12 @@ if( $( $(& $env:comspec "/s /c java -version 2>&1") | Out-String) -match '^(?<v
|
||||
$java11Version = $Matches.version
|
||||
}
|
||||
|
||||
$env:Path = $env:JAVA_HOME_13_X64 + "\bin;" + $env:Path
|
||||
|
||||
if( $( $(& $env:comspec "/s /c java -version 2>&1") | Out-String) -match '^(?<vendor>.+) version "(?<version>.+)".*' )
|
||||
{
|
||||
$java13Version = $Matches.version
|
||||
}
|
||||
|
||||
if( $(ant -version) -match 'Apache Ant\(TM\) version (?<version>.*) compiled.*' )
|
||||
{
|
||||
@@ -69,6 +75,10 @@ _Location:_ $env:JAVA_HOME_7_X64
|
||||
#### $java11Version
|
||||
|
||||
_Location:_ $env:JAVA_HOME_11_X64
|
||||
|
||||
#### $java13Version
|
||||
|
||||
_Location:_ $env:JAVA_HOME_13_X64
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
|
||||
Reference in New Issue
Block a user