[Penrose-discuss] Questions about creating a simple module

Shi Jun Zhang zhangshj at linux.vnet.ibm.com
Tue Sep 11 01:13:17 PDT 2012


On 9/11/2012 3:14 AM, David Bosschaert wrote:
> 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
Modular jar is already supported, but the modular jar with 
module-info.json is not supported yet. I will try to do some 
modification to make it work.

-- 
Regards,

Shi Jun Zhang




More information about the penrose-discuss mailing list