Re: How to get the layer.xml from ModuleInfo?
On Fri, 5 Oct 2018 at 10:32, Peter Nabbefeld wrote: > It just was a guess. I just wanted to work around my other question > (getting the url from a file reference). There's not even necessarily one layer file either. What exactly is the problem you're trying to solve? What's wrong with FileObject::toURI? Best wishes, Neil - To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to get the layer.xml from ModuleInfo?
Exactly. Gj On Friday, October 5, 2018, Peter Nabbefeld wrote: > It just was a guess. I just wanted to work around my other question > (getting the url from a file reference). > > But, thinking about it, this it isn't expected to be possible, as the > layer file becomes part of the XML filesystem after installation, it > doesn't have a "personality" of its own which would justify to store its > "personal" contents separately und thus having a permanent pointer to it. > > Peter > > > > Am 05.10.18 um 08:47 schrieb Geertjan Wielenga: > >> I still don’t understand why it is that you are trying to do this, if you >> explain the context, that would help. You should never need to access the >> layer.xml file itself. There are method calls in FileUtil for getting hold >> of folders and files in the layer. Can you explain what it is you’re >> trying >> to achieve? Parsing the layer directly is never going to be the correct >> approach. >> >> Gj >> >> >> On Friday, October 5, 2018, Peter Nabbefeld >> wrote: >> >> ModuleInfo does not seem to provide access to everything from the >>> manifest, especially not the path to the layer file. >>> >>> P. >>> >>> >>> >>> Am 05.10.18 um 07:10 schrieb Geertjan Wielenga: >>> >>> Unless you don't mean the module info file from Jigsaw, and you mean something different instead? The layer.xml file is registered in the module's manifest, if that helps. Gj On Fri, Oct 5, 2018 at 7:06 AM Geertjan Wielenga < geertjan.wiele...@googlemail.com> wrote: Whatever it is you're trying to do here, please stop. :-) The NetBeans > module system and the Jigsaw module system are two totally different > things > and know nothing about each other. On the other hand, you're going to > ignore this advice and go on ahead with whatever this is anyway, so > bear > in > mind that the module info file is always found in exactly the same > place, > so you can simply provide a hard coded path to it, just like is done > here > for example, look for 'META-INF': > > > https://github.com/apache/incubator-netbeans/blob/master/ > java/java.source.base/src/org/netbeans/modules/java/source/ > parsing/CachingFileManager.java > > Gj > > > > On Fri, Oct 5, 2018 at 6:55 AM Peter Nabbefeld > > wrote: > > Hello, > >> is there any way to read a module's layer.xml from ModuleInfo (or sth. >> else in global lookup)? >> >> Kind regards >> Peter >> >> - >> To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org >> For additional commands, e-mail: dev-help@netbeans.incubator. >> apache.org >> >> For further information about the NetBeans mailing lists, visit: >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists >> >> >> >> >> >> - >>> To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org >>> For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org >>> >>> For further information about the NetBeans mailing lists, visit: >>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists >>> >>> >>> >>> >>> > > - > To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org > For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > >
Re: How to get the layer.xml from ModuleInfo?
It just was a guess. I just wanted to work around my other question (getting the url from a file reference). But, thinking about it, this it isn't expected to be possible, as the layer file becomes part of the XML filesystem after installation, it doesn't have a "personality" of its own which would justify to store its "personal" contents separately und thus having a permanent pointer to it. Peter Am 05.10.18 um 08:47 schrieb Geertjan Wielenga: I still don’t understand why it is that you are trying to do this, if you explain the context, that would help. You should never need to access the layer.xml file itself. There are method calls in FileUtil for getting hold of folders and files in the layer. Can you explain what it is you’re trying to achieve? Parsing the layer directly is never going to be the correct approach. Gj On Friday, October 5, 2018, Peter Nabbefeld wrote: ModuleInfo does not seem to provide access to everything from the manifest, especially not the path to the layer file. P. Am 05.10.18 um 07:10 schrieb Geertjan Wielenga: Unless you don't mean the module info file from Jigsaw, and you mean something different instead? The layer.xml file is registered in the module's manifest, if that helps. Gj On Fri, Oct 5, 2018 at 7:06 AM Geertjan Wielenga < geertjan.wiele...@googlemail.com> wrote: Whatever it is you're trying to do here, please stop. :-) The NetBeans module system and the Jigsaw module system are two totally different things and know nothing about each other. On the other hand, you're going to ignore this advice and go on ahead with whatever this is anyway, so bear in mind that the module info file is always found in exactly the same place, so you can simply provide a hard coded path to it, just like is done here for example, look for 'META-INF': https://github.com/apache/incubator-netbeans/blob/master/ java/java.source.base/src/org/netbeans/modules/java/source/ parsing/CachingFileManager.java Gj On Fri, Oct 5, 2018 at 6:55 AM Peter Nabbefeld wrote: Hello, is there any way to read a module's layer.xml from ModuleInfo (or sth. else in global lookup)? Kind regards Peter - To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists - To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists - To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to get the layer.xml from ModuleInfo?
I still don’t understand why it is that you are trying to do this, if you explain the context, that would help. You should never need to access the layer.xml file itself. There are method calls in FileUtil for getting hold of folders and files in the layer. Can you explain what it is you’re trying to achieve? Parsing the layer directly is never going to be the correct approach. Gj On Friday, October 5, 2018, Peter Nabbefeld wrote: > > ModuleInfo does not seem to provide access to everything from the > manifest, especially not the path to the layer file. > > P. > > > > Am 05.10.18 um 07:10 schrieb Geertjan Wielenga: > >> Unless you don't mean the module info file from Jigsaw, and you mean >> something different instead? The layer.xml file is registered in the >> module's manifest, if that helps. >> >> Gj >> >> On Fri, Oct 5, 2018 at 7:06 AM Geertjan Wielenga < >> geertjan.wiele...@googlemail.com> wrote: >> >> Whatever it is you're trying to do here, please stop. :-) The NetBeans >>> module system and the Jigsaw module system are two totally different >>> things >>> and know nothing about each other. On the other hand, you're going to >>> ignore this advice and go on ahead with whatever this is anyway, so bear >>> in >>> mind that the module info file is always found in exactly the same place, >>> so you can simply provide a hard coded path to it, just like is done here >>> for example, look for 'META-INF': >>> >>> >>> https://github.com/apache/incubator-netbeans/blob/master/ >>> java/java.source.base/src/org/netbeans/modules/java/source/ >>> parsing/CachingFileManager.java >>> >>> Gj >>> >>> >>> >>> On Fri, Oct 5, 2018 at 6:55 AM Peter Nabbefeld >>> wrote: >>> >>> Hello, is there any way to read a module's layer.xml from ModuleInfo (or sth. else in global lookup)? Kind regards Peter - To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > - > To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org > For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > >
Re: How to get the layer.xml from ModuleInfo?
ModuleInfo does not seem to provide access to everything from the manifest, especially not the path to the layer file. P. Am 05.10.18 um 07:10 schrieb Geertjan Wielenga: Unless you don't mean the module info file from Jigsaw, and you mean something different instead? The layer.xml file is registered in the module's manifest, if that helps. Gj On Fri, Oct 5, 2018 at 7:06 AM Geertjan Wielenga < geertjan.wiele...@googlemail.com> wrote: Whatever it is you're trying to do here, please stop. :-) The NetBeans module system and the Jigsaw module system are two totally different things and know nothing about each other. On the other hand, you're going to ignore this advice and go on ahead with whatever this is anyway, so bear in mind that the module info file is always found in exactly the same place, so you can simply provide a hard coded path to it, just like is done here for example, look for 'META-INF': https://github.com/apache/incubator-netbeans/blob/master/java/java.source.base/src/org/netbeans/modules/java/source/parsing/CachingFileManager.java Gj On Fri, Oct 5, 2018 at 6:55 AM Peter Nabbefeld wrote: Hello, is there any way to read a module's layer.xml from ModuleInfo (or sth. else in global lookup)? Kind regards Peter - To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists - To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to get the layer.xml from ModuleInfo?
Good Morning Geertjan, I asked for "from ModuleInfo (or sth. else in global lookup)?" - so it's about the ModuleInfo objects which are placed in the global lookup of NetBeans. ;-) I'll not (yet) try to mix NetBeans modules with Jigsaw, as NetBeans modules do not yet support that yet, AFAIK. But, of course, I'll like to try ASAP. ;-) Kind regards Peter Am 05.10.18 um 07:06 schrieb Geertjan Wielenga: Whatever it is you're trying to do here, please stop. :-) The NetBeans module system and the Jigsaw module system are two totally different things and know nothing about each other. On the other hand, you're going to ignore this advice and go on ahead with whatever this is anyway, so bear in mind that the module info file is always found in exactly the same place, so you can simply provide a hard coded path to it, just like is done here for example, look for 'META-INF': https://github.com/apache/incubator-netbeans/blob/master/java/java.source.base/src/org/netbeans/modules/java/source/parsing/CachingFileManager.java Gj On Fri, Oct 5, 2018 at 6:55 AM Peter Nabbefeld wrote: Hello, is there any way to read a module's layer.xml from ModuleInfo (or sth. else in global lookup)? Kind regards Peter - To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists - To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to get the layer.xml from ModuleInfo?
Unless you don't mean the module info file from Jigsaw, and you mean something different instead? The layer.xml file is registered in the module's manifest, if that helps. Gj On Fri, Oct 5, 2018 at 7:06 AM Geertjan Wielenga < geertjan.wiele...@googlemail.com> wrote: > Whatever it is you're trying to do here, please stop. :-) The NetBeans > module system and the Jigsaw module system are two totally different things > and know nothing about each other. On the other hand, you're going to > ignore this advice and go on ahead with whatever this is anyway, so bear in > mind that the module info file is always found in exactly the same place, > so you can simply provide a hard coded path to it, just like is done here > for example, look for 'META-INF': > > > https://github.com/apache/incubator-netbeans/blob/master/java/java.source.base/src/org/netbeans/modules/java/source/parsing/CachingFileManager.java > > Gj > > > > On Fri, Oct 5, 2018 at 6:55 AM Peter Nabbefeld > wrote: > >> >> Hello, >> >> is there any way to read a module's layer.xml from ModuleInfo (or sth. >> else in global lookup)? >> >> Kind regards >> Peter >> >> - >> To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org >> For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org >> >> For further information about the NetBeans mailing lists, visit: >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists >> >> >> >>
Re: How to get the layer.xml from ModuleInfo?
Whatever it is you're trying to do here, please stop. :-) The NetBeans module system and the Jigsaw module system are two totally different things and know nothing about each other. On the other hand, you're going to ignore this advice and go on ahead with whatever this is anyway, so bear in mind that the module info file is always found in exactly the same place, so you can simply provide a hard coded path to it, just like is done here for example, look for 'META-INF': https://github.com/apache/incubator-netbeans/blob/master/java/java.source.base/src/org/netbeans/modules/java/source/parsing/CachingFileManager.java Gj On Fri, Oct 5, 2018 at 6:55 AM Peter Nabbefeld wrote: > > Hello, > > is there any way to read a module's layer.xml from ModuleInfo (or sth. > else in global lookup)? > > Kind regards > Peter > > - > To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org > For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > >
How to get the layer.xml from ModuleInfo?
Hello, is there any way to read a module's layer.xml from ModuleInfo (or sth. else in global lookup)? Kind regards Peter - To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists