I’ve been using the osgi plugin to create regular bundles with Gradle, but now I’m not sure how best to create a web application bundle. Looking at the BND documentation, it provides a -wab instruction which appears to do exactly what I need: http://www.aqute.biz/Bnd/Format#wab. However, putting:
instruction ‘-wab’, ‘static-pages/’
in my gradle file doesn’t have any effect. Is it supported by the plugin?
Here’s the relevant part of my build.gradle:
jar
{
manifest
{
symbolicName = 'com.foo.test'
instruction '-wab', 'static-pages/'
instruction 'Web-ContextPath', '/test'
instruction 'Bundle-ClassPath', '.,WEB-INF/classes'
}
}