Duplicate Version.java files generated ?

David Holmes david.holmes at oracle.com
Tue Sep 4 21:28:51 PDT 2012


On 4/09/2012 7:00 PM, David Holmes wrote:
> On 4/09/2012 5:35 PM, Erik Joelsson wrote:
>> 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.
>
> Ah! Thanks Erik! That also (partly) explains why deleting the
> generc_misc version didn't trigger a rebuild.

But I should add that deleting the .class and all Version.java files has 
a horrible affect on a rebuild - seems to induce a rebuild of masses of 
Java and C code. :(

David


> David
> -----
>
>> 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