You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Arik Kfir (JIRA)" <ji...@apache.org> on 2011/08/28 18:18:37 UTC
[jira] [Created] (FELIX-3092) Support relative paths in
"urlTemplate" parameter of "bundle:index" goal in maven bundle plugin
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
Fix For: maven-bundle-plugin-2.4.0
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.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (FELIX-3092) Support relative paths in
"urlTemplate" parameter of "bundle:index" goal in maven bundle plugin
Posted by "Stuart McCulloch (Assigned) (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Resolved] (FELIX-3092) Support relative paths in
"urlTemplate" parameter of "bundle:index" goal in maven bundle plugin
Posted by "Stuart McCulloch (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stuart McCulloch resolved FELIX-3092.
-------------------------------------
Resolution: Fixed
Fixed in r1173718 and deployed a new snapshot of the maven-bundle-plugin
> 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
> Fix For: maven-bundle-plugin-2.4.0
>
> 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
[jira] [Updated] (FELIX-3092) Support relative paths in
"urlTemplate" parameter of "bundle:index" goal in maven bundle plugin
Posted by "Arik Kfir (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arik Kfir updated FELIX-3092:
-----------------------------
Attachment: patch
This patch should be applied at the "bundleplugin" directory, not the root of the felix trunk.
> 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
> Fix For: maven-bundle-plugin-2.4.0
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira