Exactly. Gj
On Friday, October 5, 2018, Peter Nabbefeld <[email protected]> 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 <[email protected]> >> 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 < >>>> [email protected]> 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 <[email protected] >>>>> > >>>>> 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: [email protected] >>>>>> For additional commands, e-mail: [email protected]. >>>>>> apache.org >>>>>> >>>>>> For further information about the NetBeans mailing lists, visit: >>>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> For further information about the NetBeans mailing lists, visit: >>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists >>> >>> >>> >>> >>> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > >
