Question about FileManagers in Jigsaw.

Jonathan Gibbons jonathan.gibbons at oracle.com
Mon Mar 12 08:01:52 PDT 2012


On 03/12/2012 07:04 AM, Jesse Glick wrote:
> On 03/12/2012 05:59 AM, Fredrik Öhrström wrote:
>> Can a single javac invocation handle both legacy non-module sources and
>> sources put into a module.
>
> A related question, which may be rather important:
>
> Can a javac invocation for single-module mode accept module-info.java 
> from one location in -sourcepath and regular compilation units from 
> another?

Yes.  In both single-module mode and multiple-module mode, -sourcepath 
and -modulepath retain the concept of a path being a series of places in 
which to search for desired content. The "classic" use  case we have 
always had in mind for the JDK build has been the combination of source 
directories, such as "src/share/classes", "src/$PLATFORM/classes", and 
"build/$PLATFORM/gensrc".

-- Jon



More information about the jigsaw-dev mailing list