[ 
https://issues.apache.org/jira/browse/BUILDR-311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754187#action_12754187
 ] 

Antoine Toulme commented on BUILDR-311:
---------------------------------------

Something a la builder maybe ?

manifest.import_package { |import|
  import.p1, :bundle-version => "1.1"
  import.p2
  import.p3
}
manifest.export_package { |export|
  export.p1
  export.p2
  export.p3
}

well p1 would look like "com.something.blah.awesome.project" so I guess it 
might not be easy to use it.

> 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.

Reply via email to