You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2019/12/23 11:11:00 UTC

[jira] [Updated] (DOXIASITETOOLS-112) DefaultSiteTool.getRelativePath does not work between files

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

Elliotte Rusty Harold updated DOXIASITETOOLS-112:
-------------------------------------------------
    Labels: GoodForNewContributors  (was: )

> DefaultSiteTool.getRelativePath does not work between files
> -----------------------------------------------------------
>
>                 Key: DOXIASITETOOLS-112
>                 URL: https://issues.apache.org/jira/browse/DOXIASITETOOLS-112
>             Project: Maven Doxia Sitetools
>          Issue Type: Bug
>          Components: Integration Tools
>    Affects Versions: doxia-integration-tools-1.4
>            Reporter: Lukas Theussl
>            Priority: Major
>              Labels: GoodForNewContributors
>
> See test case committed in [r1174674|http://svn.apache.org/viewvc?rev=1174674&view=rev]. Given
> {code}
> to = "http://maven.apache.org/downloads.html";
> from = "http://maven.apache.org/index.html";
> {code}
> getRelativePath( to, from ) returns "../downloads.html" instead of "downloads.html". It seems like the 'from' parameter is always supposed to be a directory. That's confusing and not very useful, also the [javadocs|http://maven.apache.org/shared/maven-doxia-tools/apidocs/org/apache/maven/doxia/tools/SiteTool.html#getRelativePath%28java.lang.String,%20java.lang.String%29] state that the method should 'Calculate the relative path between two URLs or between two files.'.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)