[
https://issues.apache.org/jira/browse/BUILDR-311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754181#action_12754181
]
Alex Boisvert commented on BUILDR-311:
--------------------------------------
Since the values of manifest entries don't have a standard format, how about
using more DSL-ish helpers to achieve this? e.g.,
project("foo").package.manifest = osgi {
import_package [{"p1" => {"bundle-version" => "1.1"}},"p2","p3"]
export_package %w[p1 p2 p3]
}
> Better support of entries in manifest
> -------------------------------------
>
> Key: BUILDR-311
> URL: https://issues.apache.org/jira/browse/BUILDR-311
> Project: Buildr
> Issue Type: Improvement
> Affects Versions: 1.3.4
> Reporter: Antoine Toulme
> Assignee: Assaf Arkin
>
> I would like to propose an enhancement to buildr on the way the manifest
> accepts entries.
> Right now you can do:
> project("foo").package.manifest = { "Export-Package" => "p1,p2,p3"}
> Eventually I'd like to do:
> project("foo").package.manifest = { "Export-Package" => %w[p1 p2 p3]}
> Because then I have more length to modulate the array, use an array defined
> somewhere else.
> I also would like to do:
> project("foo").package.manifest = { "Import-Package" => [{"p1" =>
> {"bundle-version" => "1.1"}},"p2","p3"]}
> which would show like this in the manifest:
> Import-Package: p1;bundle-version:="1.1",p2,p3
> Those subentries definitions are very important wrt to the work I am doing on
> my plugin.
> I will propose a patch for this, I'd love some feedback if possible.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.