mirror of
https://gitea.com/actions/setup-java.git
synced 2025-09-14 15:48:32 +08:00
Log whats happening
This commit is contained in:
@@ -50,6 +50,7 @@ function getJava(versionSpec, arch, jdkFile) {
|
|||||||
const compressedFileExtension = getFileEnding(jdkFile);
|
const compressedFileExtension = getFileEnding(jdkFile);
|
||||||
let tempDir = path.join(tempDirectory, 'temp_' + Math.floor(Math.random() * 2000000000));
|
let tempDir = path.join(tempDirectory, 'temp_' + Math.floor(Math.random() * 2000000000));
|
||||||
const jdkDir = yield unzipJavaDownload(jdkFile, compressedFileExtension, tempDir);
|
const jdkDir = yield unzipJavaDownload(jdkFile, compressedFileExtension, tempDir);
|
||||||
|
core.debug(`jdk extracted to ${jdkDir}`);
|
||||||
toolPath = yield tc.cacheDir(jdkDir, 'Java', versionSpec, arch);
|
toolPath = yield tc.cacheDir(jdkDir, 'Java', versionSpec, arch);
|
||||||
}
|
}
|
||||||
let extendedJavaHome = 'JAVA_HOME_' + versionSpec + '_' + arch;
|
let extendedJavaHome = 'JAVA_HOME_' + versionSpec + '_' + arch;
|
||||||
|
@@ -45,6 +45,7 @@ export async function getJava(
|
|||||||
compressedFileExtension,
|
compressedFileExtension,
|
||||||
tempDir
|
tempDir
|
||||||
);
|
);
|
||||||
|
core.debug(`jdk extracted to ${jdkDir}`);
|
||||||
toolPath = await tc.cacheDir(jdkDir, 'Java', versionSpec, arch);
|
toolPath = await tc.cacheDir(jdkDir, 'Java', versionSpec, arch);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user