DefaultSiteTool.getRelativePath does not work between files -----------------------------------------------------------
Key: MSHARED-208 URL: https://jira.codehaus.org/browse/MSHARED-208 Project: Maven Shared Components Issue Type: Bug Components: maven-doxia-tools Affects Versions: maven-doxia-tools-1.4 Reporter: Lukas Theussl 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 is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira