OpenJDK rebuilding on windows takes a long time
    Fredrik Öhrström 
    oehrstroem at gmail.com
       
    Fri Feb 15 07:31:31 UTC 2013
    
    
  
2013/2/15 Ioi Lam <ioi.lam at oracle.com>:
> Is there an option in the makefiles to compile ONLY the .java file that's
> changed (assuming I know the changes won't affect other classes)?
Yes, configure with --enable-sjavac.
Then it will recompile exactly the java files you have touched.
And if the public api of the package you changed files in, is changed,
then it will recompile all other packages that import from that package.
Thus add a public method to java/lang/Object.java, type make,
and watch it recompile ~9000 classes.
Change private code in an awt class, and it will recompile only
that package.
Try it! And report how it fares for you!
//Fredrik
    
    
More information about the build-dev
mailing list