module-info-like syntax for modules.config
Mandy Chung
Mandy.Chung at Sun.COM
Thu Nov 5 16:16:23 PST 2009
Oops... somehow the curly-bracket '}' got messed up in my
example. A good example should be like this:
module jdbc.base {
include java.sql.*, javax.sql.*; // comma-separated list
exclude javax.sql.XA*; // ';' statement terminator
}
Mandy Chung wrote:
> I have modified the syntax to be more like that of module-info.java
> files. A module (say jdbc.base) is defined as follows:
>
> module jdbc.base {
> include java.sql.*, javax.sql.*; // comma-separated list
> exclude javax.sql.XA*; // ';' statement terminator }
>
> It currently allows "include", "exclude" and "roots" constructs.
> /* */ and // are used as the delimiters for comments (no longer
> support #).
>
> I also add a new "compat" module in modules.config to list the
> deprecated classes. To avoid having the base module to exclude the
> deprecated classes explicitly, the compat module
> is defined before the base module.
>
> Webrev at:
> http://cr.openjdk.java.net/~mchung/jigsaw/tools/webrev.110509/
>
> Mandy
>
>
>
More information about the jigsaw-dev
mailing list