1
0
mirror of https://github.com/actions/setup-java.git synced 2025-04-12 16:26:46 +08:00

Log whats happening

This commit is contained in:
Danny McCormick 2019-07-10 15:20:05 -04:00
parent 05dd7fbe75
commit 69118bc9c6
2 changed files with 2 additions and 0 deletions

@ -50,6 +50,7 @@ function getJava(versionSpec, arch, jdkFile) {
const compressedFileExtension = getFileEnding(jdkFile);
let tempDir = path.join(tempDirectory, 'temp_' + Math.floor(Math.random() * 2000000000));
const jdkDir = yield unzipJavaDownload(jdkFile, compressedFileExtension, tempDir);
core.debug(`jdk extracted to ${jdkDir}`);
toolPath = yield tc.cacheDir(jdkDir, 'Java', versionSpec, arch);
}
let extendedJavaHome = 'JAVA_HOME_' + versionSpec + '_' + arch;

@ -45,6 +45,7 @@ export async function getJava(
compressedFileExtension,
tempDir
);
core.debug(`jdk extracted to ${jdkDir}`);
toolPath = await tc.cacheDir(jdkDir, 'Java', versionSpec, arch);
}