sdedic opened a new issue, #6801: URL: https://github.com/apache/netbeans/issues/6801
### Description Support for including (merging) a layer fragment for testing would be useful. ### Use case/motivation I needed to write a test that injects something into layers, so that NB implementation sees testing data through FileUtil.getConfigFile and lookup. In simple cases, it is sufficient to provide META-INF/generated-layer.xml, which is picked by the module system automatically from classpath. But in my case, the testsuite uses layer-generating annotations that themselves make such file, effectively overwriting the custom one. There's some support in Java's `SourceUtilsTestUtil` in `java.source.base` - but I think the support should be promoted, most probably to `openide.filesystems` that contains various filesystem-related or generally to some `platform` cluster module that tests can depend on. Alternatively, another layer-generating annotation can be created (e.g. in `openide.filesystems`, that would copy over resource content into the generated layer.xml ### Related issues _No response_ ### Are you willing to submit a pull request? Yes -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- 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
