Maven Doxia Tools
  1. Maven Doxia Tools
  2. DOXIATOOLS-33

DefaultSiteTool.getRelativePath does not work between files

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: doxia-integration-tools-1.4
    • Fix Version/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      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.'.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Lukas Theussl
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: