eclipse-cbi / targetplatform-dsl

Target Platform Definition DSL and Generator
Eclipse Public License 2.0
76 stars 38 forks source link

Feature Request: Support for customized Bundle Instruction #132

Open guw opened 1 year ago

guw commented 1 year ago

As a follow up from #115 it would be nice to have support for custom bnd instructions:

            <instructions><![CDATA[
Bundle-Name:           Bundle derived from maven artifact ${mvnGroupId}:${mvnArtifactId}:${mvnVersion}
version:               ${version_cleanup;${mvnVersion}}
Bundle-SymbolicName:   org.${mvnArtifactId}
Bundle-Version:        ${version}
Import-Package:        *;resolution:=optional
Export-Package:        *;version="${version}";-noimport:=true
DynamicImport-Package: *
]]></instructions>
Bananeweizen commented 1 year ago

For everyone running into this problem while there is no support yet: It can be done with an Ant based project builder which patches the generated target file whenever it changes. That's not nice, but works.

ruspl-afed commented 8 months ago

yes, it would be very nice, because in some cases it is not possible to proceed without instructions for non-bundle jars