jpkg RFE
Jonathan Gibbons
jonathan.gibbons at oracle.com
Tue Jun 1 14:34:52 PDT 2010
Dalibor,
ModuleFileFormat.java, line 487: typo "diectory".
line 491, inconsistent indentation, compared to line 478.
Is line 529 correct? Before the change, the code allowed for the
possibility that the classes directory was empty. Now, what if it is
non empty but does not contain class files, and only contains resource
files?
-- Jon
On 05/28/2010 02:21 PM, Dalibor Topic wrote:
> Here's a small patch for review:
>
> http://cr.openjdk.java.net/~robilad/jpkg-resources-default/
>
> * jpkg sets resources parameter to module path if no resources path is
> explicitly given.
>
> But of course, that's not enough, so we have to make sure that we only
> start writing a resource section if there are actually resources to be
> stuffed into a jmod file - i.e. the check whether the resource path is
> empty is not sufficient in that case, as the modulepath could be chock
> full of class files, with no other file in sight. So ...
>
> * module file format gets a utility method to check if a path contains
> files that are not class files.
>
> And to make that a bit easier
>
> * Files gets a few small helper methods to tell if a file name is a
> class name.
>
> Notable differences: this means that *.properties files that were
> up until now not necessarily picked up as a resource, if they were only
> in the classes/ dirs and not in the resources/ dirs, will now get a
> place in the resources section of a jmod file.
>
> I hope this fits what Jon had in mind, I'd appreciate a review while I
> go hack on the tests.
>
> cheers,
> dalibor topic
>
More information about the jigsaw-dev
mailing list