Duplicate Version.java files generated ?

Erik Joelsson erik.joelsson at oracle.com
Tue Sep 4 00:35:36 PDT 2012


In GensrcMisc.gmk, both of sun/tools/jconsole/Version.java and 
sun/misc/Version.java gets generated and put in gensrc_misc. When all 
that is done, GenerateJavaSources.gmk will copy all of gensrc_misc into 
gensrc.

Keeping each type or kind of java source generation outputting into its 
own directory was convenient when writing the makefiles (easy rm -rf and 
rebuild) but it's probably not worth keeping it like that. The copy does 
take significant time on some less IO performant platforms.

/Erik

On 2012-09-04 09:21, David Holmes wrote:
> It seems that somehow the Version.java.template(s) gets generated into 
> two locations
>
> b00/se-linux-i586-ea/jdk/gensrc_misc/sun/tools/jconsole/Version.java
> b00/se-linux-i586-ea/jdk/gensrc_misc/sun/misc/Version.java
> b00/se-linux-i586-ea/jdk/gensrc/sun/tools/jconsole/Version.java
> b00/se-linux-i586-ea/jdk/gensrc/sun/misc/Version.java
>
> But I can't yet see where the gensrc/ version comes from ???
>
> It is remotely possible this is something peculiar to my workspace 
> (which is also not current with build-infra as it is based on jdk8)
>
> David



More information about the build-infra-dev mailing list