yes.... I'm suggesting documentation for this particular directive would be useful along with the other specifically documented directives like Export-Package which are also explained in more detail in the bnd documentation.
thanks david jencks On May 17, 2012, at 11:53 AM, Felix Meschberger wrote: > Hi, > > IIUIC als BND directives with a leading dash can be used in maven by > replacing the dash with an underscore and using the result as an element > name. Thus <_include> for -include or <_exportcontents> for -exportcontents. > > Regards > Felix > > > Am 17.05.2012 um 08:42 schrieb David Jencks: > >> I'm not sure how the felix site is generated.... >> >> Would it be possible to include something like this in the >> https://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html page >> as the last >> Instructions >> >> ? >> >> <_include> >> You can use standard .bnd files for instructions instead of the xml-style >> instructions explained here with the _include instruction like this: >> <_include>osgi.bnd</_include> >> >> >> I don't think its entirely obvious that this particular instruction works as >> well here as in a .bnd file :-) >> >> thanks >> david jencks >> >> >> On May 16, 2012, at 4:57 PM, Stuart McCulloch wrote: >> >>> On 17 May 2012, at 00:43, David Jencks wrote: >>> >>>> I thought I remembered seeing some project that used the >>>> maven-bundle-plugin but put the instructions in a *.bnd file, but when >>>> I've experimented I can't get it to work. Anyone know if this is >>>> possible, how to do it, or if not, anyone else think it would be a good >>>> idea? >>> >>> Just use <instructions><_include>test.bnd</_include></instructions> as per >>> the bnd docs: http://www.aqute.biz/Bnd/Format#directives >>> >>> Note: paths are relative to the project directory >>> >>>> thanks >>>> david jencks >>>> >>> >> >
