You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Stuart McCulloch (Assigned) (JIRA)" <ji...@apache.org> on 2011/10/16 21:22:12 UTC

[jira] [Assigned] (FELIX-3092) Support relative paths in "urlTemplate" parameter of "bundle:index" goal in maven bundle plugin

     [ https://issues.apache.org/jira/browse/FELIX-3092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart McCulloch reassigned FELIX-3092:
---------------------------------------

    Assignee: Stuart McCulloch
    
> Support relative paths in "urlTemplate" parameter of "bundle:index" goal in maven bundle plugin
> -----------------------------------------------------------------------------------------------
>
>                 Key: FELIX-3092
>                 URL: https://issues.apache.org/jira/browse/FELIX-3092
>             Project: Felix
>          Issue Type: Improvement
>          Components: Bundle Repository (OBR), Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.3.5
>            Reporter: Arik Kfir
>            Assignee: Stuart McCulloch
>             Fix For: maven-bundle-plugin-2.3.6
>
>         Attachments: patch
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> Currently the "index" goal of the "maven-bundle-plugin" supports "%p", "%f" (and others) in the "urlTemplate" parameter. This allows the developer to (re)create an OBR repository using a custom URL template, and is very useful.
> The "%p" parameter, however, is absolute, and contains the entire local path - such as "file://.../mydir/mysubdir", which is not so useful when one wants to generate a custom URL, and only wants a relative path (such as "com/mycompany/mygroupid/myversion". 
> I'm therefor submitting a patch which adds supports for another placeholder: "%rp" (shorthand for relative-path). This placeholder will resolve to the relative path between the actual file, and the root of the repository being indexed. In general it would be better to fix the "%p" placeholder, but to maintain compatibility I guess a new one is preferred.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira