Using modules for applications

Alan Bateman Alan.Bateman at oracle.com
Wed Jun 2 12:03:46 PDT 2010


Roger Riggs wrote:
> Hi,
>
> Is there a way to determine the module ID that is contained in a .jmod 
> file
> either before or after installation?
>
> The SimpleLibrary.install methods install modules but do not return
> any indication what was just installed.
>
> Even from the command line it would be useful to know what was just 
> installed.
>
> Though the module name might be encoded in the file name, I'd rather not
> be parsing filenames to find the module name.  Alternatively, a simple 
> reader
> of the .jmod file would be simple.
>
> Suggestions or workarounds?
>
> Thanks, Roger
>
I can't think of a workaround. I suspect this would require a new 
install method or maybe the existing method should return 
List<ModuleId>. Changing the existing method would probably require 
changing the parameter type as the input would need to be an ordered 
collection to match the returned list.

-Alan.



More information about the jigsaw-dev mailing list