You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Lukas Theussl (JIRA)" <ji...@codehaus.org> on 2011/09/23 13:55:17 UTC

[jira] Created: (MSHARED-208) DefaultSiteTool.getRelativePath does not work between files

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

        

[jira] (DOXIATOOLS-33) DefaultSiteTool.getRelativePath does not work between files

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/DOXIATOOLS-33?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg moved MSHARED-208 to DOXIATOOLS-33:
---------------------------------------------------

          Component/s:     (was: maven-doxia-tools)
                       Doxia Integration Tools
    Affects Version/s:     (was: maven-doxia-tools-1.4)
                       doxia-integration-tools-1.4
                  Key: DOXIATOOLS-33  (was: MSHARED-208)
              Project: Maven Doxia Tools  (was: Maven Shared Components)
    
> DefaultSiteTool.getRelativePath does not work between files
> -----------------------------------------------------------
>
>                 Key: DOXIATOOLS-33
>                 URL: https://jira.codehaus.org/browse/DOXIATOOLS-33
>             Project: Maven Doxia Tools
>          Issue Type: Bug
>          Components: Doxia Integration Tools
>    Affects Versions: doxia-integration-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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira