[ http://jira.codehaus.org/browse/MSITE-110?page=comments#action_62951 ]
Brett Porter commented on MSITE-110: ------------------------------------ btw, a later contribution of tests for the getRelativePath method would be *greatly* appreciated > Use reactor to find parent URL where possible patch (patch also includes > improved calculate relative path and better read modules from filesystem POM > functionality) > -------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: MSITE-110 > URL: http://jira.codehaus.org/browse/MSITE-110 > Project: Maven 2.x Site Plugin > Type: Bug > Versions: 2.0 > Environment: win32, JVM 1.5.0.04, maven-2.1-SNAPSHOT, site-2.0-SNAPSHOT > Reporter: John Allen > Assignee: Brett Porter > Fix For: 2.0-beta-5 > Attachments: AbstractSiteRenderingMojo.patch > > > project.getParent().getUrl() returns non-interpolated values - using the > reactor environment to locate the parent gives an interpolated url. > Additionally the patch includes a improved 'source the module details from > the filesystem' functionality which is used in non-reactor environments, if a > module is found not to define a URL (as it commonly doesnt as its inherited > from parent) then the repository is queried instead. > Patch also includes a more powerful 'calculate realtive path' function that > can handle divergent pathes share a common ancestor (e.g > ../../../foo/bar/index.html) which is used to calculate parent and module > hrefs. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira