[Penrose-discuss] Questions about creating a simple module

David Bosschaert david.bosschaert at gmail.com
Mon Sep 10 12:14:15 PDT 2012


Hi Tom,

Yes, I'm pretty sure its possible to deploy a modular jar that
contains META-INF/module-info.json (and no module-info.class). Shi Jun
is right in that the tooling support is not yet complete, but the
steps he posted should work. The penrose demos (in
http://hg.openjdk.java.net/penrose/penrose) are converted to use
META-INF/module-info.json, so they should show how you can use this in
a module jar.

The system tests [1] and [2] may also be of help to you... [1] shows a
basic module using JSON metadata, while [2] shows a simple module that
contains custom metadata in the JSON module definition.

Best regards,

David

http://hg.openjdk.java.net/penrose/jigsaw/jdk/file/8ddc73840820/test/org/openjdk/jigsaw/hello-json.sh
http://hg.openjdk.java.net/penrose/jigsaw/jdk/file/8ddc73840820/test/org/openjdk/jigsaw/hello-json-custom.sh


On 10 September 2012 16:13, Thomas Watson <tjwatson at us.ibm.com> wrote:
> Do you know if "module jar" [1] is supported yet?  If so is such a thing
> supported by using a META-INF/module-info.json file?
>
> Tom
>
> [1] http://openjdk.java.net/projects/jigsaw/doc/topics/modularjar.html


More information about the penrose-discuss mailing list