mirror of
https://github.com/actions/setup-java.git
synced 2025-01-19 14:16:41 +08:00
Keep old environment variable for backwards compatibility
This commit is contained in:
parent
655cb05195
commit
88965601fb
1
dist/index.js
generated
vendored
1
dist/index.js
generated
vendored
@ -4742,6 +4742,7 @@ function getJava(version, arch, jdkFile, javaPackage) {
|
|||||||
toolPath = yield tc.cacheDir(jdkDir, javaPackage, getCacheVersionString(version), arch);
|
toolPath = yield tc.cacheDir(jdkDir, javaPackage, getCacheVersionString(version), arch);
|
||||||
}
|
}
|
||||||
let extendedJavaHome = 'JAVA_HOME_' + version + '_' + arch;
|
let extendedJavaHome = 'JAVA_HOME_' + version + '_' + arch;
|
||||||
|
core.exportVariable(extendedJavaHome, toolPath); //TODO: remove for v2
|
||||||
// For portability reasons environment variables should only consist of
|
// For portability reasons environment variables should only consist of
|
||||||
// uppercase letters, digits, and the underscore. Therefore we convert
|
// uppercase letters, digits, and the underscore. Therefore we convert
|
||||||
// the extendedJavaHome variable to upper case and replace '.' symbols and
|
// the extendedJavaHome variable to upper case and replace '.' symbols and
|
||||||
|
@ -87,6 +87,7 @@ export async function getJava(
|
|||||||
}
|
}
|
||||||
|
|
||||||
let extendedJavaHome = 'JAVA_HOME_' + version + '_' + arch;
|
let extendedJavaHome = 'JAVA_HOME_' + version + '_' + arch;
|
||||||
|
core.exportVariable(extendedJavaHome, toolPath); //TODO: remove for v2
|
||||||
// For portability reasons environment variables should only consist of
|
// For portability reasons environment variables should only consist of
|
||||||
// uppercase letters, digits, and the underscore. Therefore we convert
|
// uppercase letters, digits, and the underscore. Therefore we convert
|
||||||
// the extendedJavaHome variable to upper case and replace '.' symbols and
|
// the extendedJavaHome variable to upper case and replace '.' symbols and
|
||||||
|
Loading…
x
Reference in New Issue
Block a user