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

        

Reply via email to