Skip to content

[DOXIASITETOOLS-112] DefaultSiteTool.getRelativePath does not work between files #395

@jira-importer

Description

@jira-importer

Lukas Theussl opened DOXIASITETOOLS-112 and commented

See test case committed in r1174674. Given

to = "http://maven.apache.org/downloads.html";
from = "http://maven.apache.org/index.html";

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 state that the method should 'Calculate the relative path between two URLs or between two files.'.


Affects: doxia-integration-tools-1.4

Issue Links:

  • DOXIASITETOOLS-110 DefaultSiteTool.getRelativePath returns nonsense if both paths are absolute with different scheme
    ("is duplicated by")

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions