Re: Add posibility to add custom ModuleReaderFactory to ModuleFinder

2018-09-28 Thread Remi Forax
- Mail original - > De: "Alan Bateman" > À: "Alex Sviridov" , "jigsaw-dev" > > Envoyé: Vendredi 28 Septembre 2018 15:51:56 > Objet: Re: Add posibility to add custom ModuleReaderFactory to ModuleFinder > On 28/09/2018 13:10, Alex Svi

Re: Add posibility to add custom ModuleReaderFactory to ModuleFinder

2018-09-28 Thread Alan Bateman
On 28/09/2018 15:30, Alex Sviridov wrote: Alan, thank you very much for your help. This is what I was looking for. Only one moment - as I  understand the ModuleFinder that you implemented can work only with .war modules. However, at one JPMS layer I want to place .war modules and .jar modules.

Re[2]: Add posibility to add custom ModuleReaderFactory to ModuleFinder

2018-09-28 Thread Alex Sviridov
Alan, thank you very much for your help. This is what I was looking for. Only one moment - as I  understand the ModuleFinder that you implemented can work only with .war modules. However, at one JPMS layer I want to place .war modules and .jar modules. What should I do in such situation? Should

Re: Add posibility to add custom ModuleReaderFactory to ModuleFinder

2018-09-28 Thread Alan Bateman
On 28/09/2018 13:10, Alex Sviridov wrote: Hi Alan Thank you for your answer. But my main problem is not jars inside .war - this is a so far from my current problem. Now I need to 1) add .war file to layer 2). to map file location, for example instead of "module-info.java" I must find "WEB-INF

Re[2]: Add posibility to add custom ModuleReaderFactory to ModuleFinder

2018-09-28 Thread Alex Sviridov
Hi Alan Thank you for your answer. But my main problem is not jars inside .war - this is a so far from my current problem. Now I need to 1) add .war file to layer 2). to map file location, for example instead of "module-info.java" I must find "WEB-INF/classes/module-info.java" etc. That is all

Re: Add posibility to add custom ModuleReaderFactory to ModuleFinder

2018-09-28 Thread Alan Bateman
On 28/09/2018 10:01, Alex Sviridov wrote: From java 9 we can create JPMS layers and dynamically add modules to it. At the same time different types of java archives can be JPMS modules - .jar, .war, .ear. However, the problem is that it is possible to add only .jar archives by default. I open

Add posibility to add custom ModuleReaderFactory to ModuleFinder

2018-09-28 Thread Alex Sviridov
From java 9 we can create JPMS layers and dynamically add modules to it. At the same time different types of java archives can be JPMS modules - .jar, .war, .ear. However, the problem is that it is possible to add only .jar archives by default. I opened an issue here  https://bugs.openjdk.java.