hg: penrose/penrose: 1. Update Penrose demos to support JSON format module info.

Shi Jun Zhang zhangshj at linux.vnet.ibm.com
Wed Jul 4 22:50:20 PDT 2012


On 7/4/2012 10:04 PM, David Bosschaert wrote:
> On 4 July 2012 12:04, David Bosschaert<david.bosschaert at gmail.com>  wrote:
>> On 4 July 2012 07:36, Shi Jun Zhang<zhangshj at linux.vnet.ibm.com>  wrote:
>>> 1. We need to add some document on how to write JSON format module info. I
>>> have to look into source code to learn how module-info.json structures and
>>> how to add modifiers.
>> Yes, this is correct. It would be great if we had a wiki to host this
>> information. But in the absence of that I'll create a document and
>> will share it some other way.
>> Currently there are 2 system tests that can be used as example:
>> * http://hg.openjdk.java.net/penrose/jigsaw/jdk/file/507fae0a1d80/test/org/openjdk/jigsaw/hello-json.sh
>> * http://hg.openjdk.java.net/penrose/jigsaw/jdk/file/1d2576346081/test/org/openjdk/jigsaw/hello-json-custom.sh
> I have checked some documentation in to the penrose code base in the
> absence of a wiki. You can find it here:
> http://hg.openjdk.java.net/penrose/penrose/raw-file/9b7beb1f525b/doc/PenroseModuleInfoJSON.html
>
> Hope this helps, let me know if you're missing anything.
>
> Cheers,
>
> David
>

That's great. As exports and permits are just set of strings in 
ModuleInfo java object, can we simplify the representation in 
module-info.json?
Such as: "exports" : [ "x.y.z" ], "permits" : [ "x", "y" ]

-- 
Regards,

Shi Jun Zhang




More information about the penrose-dev mailing list