Excessive rebuilds of modules

Erik Joelsson erik.joelsson at oracle.com
Thu May 21 07:05:12 UTC 2015

On 2015-05-20 22:39, Alan Bateman wrote:
> On 20/05/2015 21:12, Roger Riggs wrote:
>> Ioi,
>> You can rebuild just the contents of a single module:
>> % make java.base java.base-libs java.base-launchers
> Yes, and this works great when you are using an exploded build. It's 
> possible that Ioi is looking for an images build of course. In general 
> then this needs sjavac as Joe brings up.
If you have a full image build, make a change to something in java.base, 
you could do something like this to avoid unnecessary rebuilds:

$ make java.base && make images-only

Note that if you put the *-only target on the same make command line, 
the results will be unpredictable as -only deactivates dependencies, so 
images would start running before java.base was properly done.

A note on sjavac, I do believe it currently works (to some extent) in jdk9.


More information about the build-dev mailing list