Version info as part of the jmod filename?
Alan.Bateman at oracle.com
Tue Apr 24 02:41:42 PDT 2012
On 24/04/2012 02:18, David Holmes wrote:
> I was wondering how fundamental including the version in the jmod
> filename is to the overall jigsaw approach?
> I'm trying to reconcile writing the version in the module-info.java,
> and writing build rules that will need to include the version
> information in the jmod filename. I can set a make variable for the
> version string but then I have to keep it in sync with the contents of
> If the version info was not part of the filename this would not be an
> Alternatively if the version info could be omitted from
> module-info.java but supplied as a compile-time option, that was also
> solve my problem.
Whether the module is packaged as a JAR file, jmod, .deb or whatever
then I would think it would be inconvenient if the version wasn't in the
file name, particularly when you have a directory where you may
potentially have more than one version of a module. I would think
specifying the version to the compiler would be awkward too,
particularly when compiling several modules in the one javac command.
Couldn't the make file pick up the version number from the name of the
.jmod file that is created?
More information about the jigsaw-dev