Question about FileManagers in Jigsaw.
Fredrik Öhrström
fredrik.ohrstrom at oracle.com
Mon Mar 12 09:08:38 PDT 2012
2012-03-12 16:22, Jonathan Gibbons skrev:
> Note that even in single module module, the "single" refers to the
> sources being compiled.
> Even in single module mode, you can refer to other modules which have
> already been compiled
> are are available on either the module path or in a module library.
>
> If you need to compile the sources for multiple modules in the same
> compilation, then you must
> use multiple module mode, which means you will need to reorganize your
> sources so that the
> sourcepath and module path should be organized in "module path layout",
> meaning that there
> is an extra filename component to separate the package hierarchies for
> the various modules
> being compiled. It is expected, but not required, that there is a
> relationship between the
> name of that filename component and the module name.
>
So to be sure about where a module is and what its name is, tools like
ant, have
to open the module-info.java file and read it? If ant looks at a
directory and finds
both module-info.java and java sources, then it probably is a single
module compile.
If it only finds a module-info.java file and the module_name inside it,
sort of corresponds
to the directory (or is the directory name encoded into the
module-info.java file)
then it is multiple module setup?
I was hoping that when I found a module-info.java file, the directory in
which it resides
is the name of the module. Fast and convenient.....
//Fredrik
More information about the jigsaw-dev
mailing list