Links to local files with a parameter aren't found.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@522361 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
aheritier committed 2007-03-25 22:08:45 +00:00
1 parent 1bdd18c3c0
commit 19e5f3b8c7
2 files changed
+10

No files matched your search

@@ -70,6 +70,15 @@ public final class FileLinkValidator
if ( link.trim().length() == 0 )
return lvi.getSource();
}
if ( link.indexOf( '?' ) != -1 )
{
link = link.substring( 0, link.indexOf( '?' ) );
//If the link was just ?param=something or similar, then the file is the file it came from
//XXX: Theoretically we could even validate the anchor tag?
if ( link.trim().length() == 0 )
return lvi.getSource();
}
File f = new File( lvi.getSource().getParentFile(), link );
return f;
}
+1
View File
@@ -26,6 +26,7 @@
</properties>
<body>
<release version="1.4.1-SNAPSHOT" date="In SVN">
<action dev="aheritier" type="fix">Links to local files with a parameter aren't found.</action>
<action dev="aheritier" type="update" issue="MAVEN-1755">Upgrade maven-model to version 3.0.2.</action>
<action dev="ltheussl" type="update">Update jelly dependency to match the ones in maven 1.1 core.</action>
<action dev="aheritier" type="fix" issue="MPLINKCHECK-27" due-to="Dennis Lundberg">Maven 1.0.x : The report is incomplete if one or more files has errors in them.</action>