Loading dist/index.js File changed.Preview suppressed by a .gitattributes entry or the file's encoding is unsupported. View original file View changed file src/installer.ts +4 Changes for src/installer.ts: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -87,6 +87,10 @@ export async function getJava( } let extendedJavaHome = 'JAVA_HOME_' + version + '_' + arch; // For portability reasons environment variables should only consist of // uppercase letters, digits, and the underscore. Therefore we convert // the extendedJavaHome variable to upper case and replace '.' symbols and // any other non-alphanumeric characters with an underscore. extendedJavaHome = extendedJavaHome.toUpperCase().replace(/[^0-9A-Z_]/g, '_'); core.exportVariable('JAVA_HOME', toolPath); core.exportVariable(extendedJavaHome, toolPath); Loading Loading
dist/index.js File changed.Preview suppressed by a .gitattributes entry or the file's encoding is unsupported. View original file View changed file
src/installer.ts +4 Changes for src/installer.ts: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -87,6 +87,10 @@ export async function getJava( } let extendedJavaHome = 'JAVA_HOME_' + version + '_' + arch; // For portability reasons environment variables should only consist of // uppercase letters, digits, and the underscore. Therefore we convert // the extendedJavaHome variable to upper case and replace '.' symbols and // any other non-alphanumeric characters with an underscore. extendedJavaHome = extendedJavaHome.toUpperCase().replace(/[^0-9A-Z_]/g, '_'); core.exportVariable('JAVA_HOME', toolPath); core.exportVariable(extendedJavaHome, toolPath); Loading