Build support for JDK-8044627
Pavel Rappo
pavel.rappo at oracle.com
Wed Oct 15 12:10:37 UTC 2014
Thanks Erik!
-Pavel
On 15 Oct 2014, at 11:40, Erik Joelsson <erik.joelsson at oracle.com> wrote:
> Hello,
>
> I have managed to come up with this solution for jdk9/dev.
>
> http://cr.openjdk.java.net/~erikj/8044627/webrev.01/
>
> I added a gensrc step for each of the affected modules that simply concatenates the files into the gensrc output dir. The version found there will automatically override the one in the jdk/src. There is an extra complication at the top level as java.corba already had a gensrc step in the corba repo. The proper solution for that part will have to be done in Jigsaw M2, the merge will be hairy. I also had come up with a way to only include one of the files in resources.jar, since the jar command doesn't like duplicate entries. This is a bit of a hack, explicitly excluding 3 of the files, but since resource.jar is going away in M2 anyway, I think it's fine for now.
>
> /Erik
>
> On 2014-10-14 15:37, Erik Joelsson wrote:
>> Hello Pavel,
>>
>> This will be a bit tricky. Give me a day or two and I will try to come up with something.
>>
>> /Erik
>>
>> On 2014-10-14 15:27, Pavel Rappo wrote:
>>> Hi,
>>>
>>> I can't build jdk9/dev repo after I introduced 4 'META-INF/service/javax.naming.spi.InitialContextFactory' files to support JNDI providers loading as a service [1]. My guess is that 'META-INF/service/javax.naming.spi.InitialContextFactory' files from different modules are being copied into the same jar. What I really need to have is a single concatenated 'META-INF/service/javax.naming.spi.InitialContextFactory' file with 4 lines. It will work fine for now.
>>>
>>> Could you please help me to resolve this? Thanks.
>>>
>>> ---------------------------------------------------------
>>> [1] http://cr.openjdk.java.net/~prappo/8044627/webrev.01/
>>>
>>> -Pavel
>>>
>>
>
More information about the build-dev
mailing list