RFR: 8266179: [macos] jpackage should specify architecture for produced pkg files [v2]
Alexey Semenyuk
asemenyuk at openjdk.java.net
Mon May 3 19:19:51 UTC 2021
On Mon, 3 May 2021 17:30:15 GMT, Alexander Matveev <almatvee at openjdk.org> wrote:
>> test/jdk/tools/jpackage/macosx/HostArchPkgTest.java line 57:
>>
>>> 55: Path distributionFile = cmd.unpackedPackageDirectory()
>>> 56: .toAbsolutePath()
>>> 57: .getParent()
>>
>> Why .getParent() is needed here?
>
> Unpacking pkg is two stage process. First we unpack it to unpacked-pkg/data which contains Distribution file, pkg background images and tar archive with app itself. Then we unpack app tar archive to unpacked-pkg/unpacked. Test needs to check unpacked-pkg/data/Distribution and cmd.pathToUnpackedPackageFile("/") returns path to unpacked-pkg/unpacked. Thus getParent() is used to move up.
Understood. Thank you for explanation!
-------------
PR: https://git.openjdk.java.net/jdk/pull/3807
More information about the core-libs-dev
mailing list