container format for jigsaw modules

Dalibor Topic Dalibor.Topic at Sun.COM
Thu Oct 29 14:31:35 PDT 2009


Dalibor Topic wrote:
> Hi,
> 
> So, for the container format for jigsaw modules, I'm currently thinking about 
> using xar files with a .jxr extension rather then .xar to differentiate them
> from regular xar archives. As there are multiple claims to the .xar
> extension, while I've seen no one lay claim to .jxr ...

The way it should work is:

    $ cat src/modules/com.foo.bar/module-info.java
    module com.foo.bar @ 1.2.3-9 { ... }
    $ javac -modulesourcepath src/modules -d build/modules $FILES

    $ jpkg -m build/modules -d build/packages jxr com.foo.bar
    $ ls build/packages
    com.foo.bar-1.2.3-9.jxr

    $ jmod install com.foo.bar-1.2.3-9.jxr
    $ jmod list
    [...]
    com.foo.bar at 1.2.3-9

List of things to go over:

	* Add a new jxr output format to jpkg
		* store module metadata as subdocument in xar manifest
		* store resources & classes in hierarchy used by jmod
		* use pack200 on classes of a module prior to archival
	* Add support for installation of jxr files to jmod
	* jmod install some.jxr some.specific.module.only may be useful, too.

Comments, ideas, etc. welcome. It'd be great to see someone go ahead and 
write a file system spi for xar files using nio.2, for example, as that could
make playing with the format from java more pleasurable. For jpkg, I intend
to use command line tools internally in the implementation, as it's being done 
for debian packages already.

cheers,
dalibor topic
-- 
*******************************************************************
Dalibor Topic                   Tel: (+49 40) 23 646 738
Java F/OSS Ambassador           AIM: robiladonaim
Sun Microsystems GmbH           Mobile: (+49 177) 2664 192
Nagelsweg 55                    http://openjdk.java.net
D-20097 Hamburg                 mailto:Dalibor.Topic at sun.com
Sitz der Gesellschaft: Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht München: HRB 161028
Geschäftsführer: Thomas Schröder, Wolfgang Engels, Wolf Frenkel
Vorsitzender des Aufsichtsrates: Martin Häring





More information about the jigsaw-dev mailing list