Skip to content

Commit 9be3ef5

Browse files
AnnaOparevaAnna Opareva
andauthored
Fixed the path to folder destination of download with JDK file (#15314)
* fix archive name * bump version * fix path * add debug log Co-authored-by: Anna Opareva <[email protected]>
1 parent 132dc36 commit 9be3ef5

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Tasks/JavaToolInstallerV0/javatoolinstaller.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ async function getJava(versionSpec: string, jdkArchitectureOption: string): Prom
6262
taskLib.getInput('azureStorageAccountName', true), taskLib.getInput('azureContainerName', true), "");
6363
await azureDownloader.downloadArtifacts(extractLocation, '*' + fileNameAndPath);
6464
await taskutils.sleepFor(250); //Wait for the file to be released before extracting it.
65-
jdkFileName = path.join(extractLocation, fileNameAndPath);
65+
let jdkArchiveName = path.basename(fileNameAndPath);
66+
jdkFileName = path.join(extractLocation, jdkArchiveName);
67+
toolLib.debug('jdkFileName: ${jdkFileName}');
6668
} else {
6769
// get from local directory
6870
console.log(taskLib.loc('RetrievingJdkFromLocalPath'));

Tasks/JavaToolInstallerV0/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"author": "Microsoft Corporation",
1414
"version": {
1515
"Major": 0,
16-
"Minor": 193,
16+
"Minor": 194,
1717
"Patch": 0
1818
},
1919
"satisfies": [

Tasks/JavaToolInstallerV0/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"author": "Microsoft Corporation",
1414
"version": {
1515
"Major": 0,
16-
"Minor": 193,
16+
"Minor": 194,
1717
"Patch": 0
1818
},
1919
"satisfies": [

0 commit comments

Comments
 (0)