RFR: jpkg contents/show commands
Chris Hegarty
chris.hegarty at oracle.com
Mon May 21 08:10:28 PDT 2012
On 21/05/2012 15:29, Paul Sandoz wrote:
>
> On May 17, 2012, at 7:04 PM, Chris Hegarty wrote:
>
>> This change adds two new commands to the packaging tool. 'jpkg show' and 'jpkg contents', which came up on this list a few weeks ago.
>>
>> http://cr.openjdk.java.net/~chegar/jigsaw/jpkg_contents.00/webrev/
>>
>
> You may want to update the JavaDoc on the Packager class.
Good idea, I'll look at the documentation.
>> Also, included is various cleanup and restructuring, especially to ModuleFile, to put in place a structure to more easily support new compression algorithms. Specifically LZMA. I have a prototype from last year I need to rebase.
>>
>> For now, 'contents' and 'show' are only added jpkg, but I could see that these may be useful before installing a module into the module library, so could be applicable to the jmod command also? Or just jmod?
>>
>
> Is "jpgk show<mf>" the equivalent of "jmod ls<midq> -v" for a module id query that matches one module?
Right, but "jmod ls <midq>" can only be run after the module has been
installed. It may be nice to know what is in a module before you install?
> Seems useful to list the contents of a module installed to a library, but i dunno if it is quite the same thing as listing the contents of the module itself.
I see this more of a debugging/sanity tool. This issue was raised on the
list a few weeks ago by David [1] who was trying to validate the
contents of his built module files.
> A useful addition, not suggesting for this patch, is the ability to extract out jar/class files from a jmod package or a module installed into a library.
'jmod extract <module-file>' will extract the contents of a module file
to the file system. Is this what you are looking for? Or maybe you're
asking about something like an export facility from the module library?
>> If these new commands are to stay in jpkg long term we should probably change the command that builds the jmod/deb files to create/build, so 'jpkg create ... jmod'.
>>
>
> Yes.
>
> What about for modular jar files?
That's next on my list ;-) I really like the idea of a 'create' command
that can take an argument to determine what type of package to create,
jpkg create ... [jmod|deb|jar|ips|...]
Though, not all options make sense to all package types. We would need
to ensure that the options are not confusing.
-Chris
[1] http://mail.openjdk.java.net/pipermail/jigsaw-dev/2012-May/002515.html
>
> Paul.
>
>
>> Two specific implementation changes to draw attention to in the webrev:
>> 1) ModuleFile.java (L535 new file). Resources were never being
>> deflated in the module library. They are now.
>> 2) Sean,
>> Can you verify the changes to changes to Singer and
>> ModuleFile.SignatureSection? All jigsaw signing related tests pass.
>>
>> -Chris.
>
More information about the jigsaw-dev
mailing list