[
http://jira.codehaus.org/browse/MTAGLIST-32?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=145971#action_145971
]
Nate Stoddard commented on MTAGLIST-32:
---------------------------------------
The issue appears to be in ReportGenerator.java:
String fileLink = xrefLocation + "/" +
fileReport.getClassNameWithSlash() + ".html";
File xrefFile = new File( siteOutputDirectory, fileLink.substring(
2 ) );
if ( xrefFile.exists() )
{
sink.link( fileLink + "#" + lineNumber );
}
else
{
// this is test-xref
sink.link( fileLink.replaceFirst( xrefLocation,
testXrefLocation ) + "#" + lineNumber );
}
If the JXR plugin is run before the taglist plugin, then the xrefFile will
exist. If the plugin order is reversed, then the xrefFile will not exist and
the testXref location will be used instead.
The support for test xref location was added by MTAGLIST-2. This is why the
SimpleProject.ZIP project works with Taglist version 2.0 and not versions
2.1,2.2, or 2.3
> Code links are all to xref-test
> -------------------------------
>
> Key: MTAGLIST-32
> URL: http://jira.codehaus.org/browse/MTAGLIST-32
> Project: Maven 2.x Taglist Plugin
> Issue Type: Bug
> Affects Versions: 2.1, 2.2
> Environment: maven 2.0.9; example project built with jdk1.4.2_18 and
> jdk1.5.0_16 on WinVista
> Reporter: Stephen Pack
> Attachments: SimpleProject.ZIP
>
>
> All of the xref links are to xref-test, including those that are in the
> source files.
> The 2.0 version currently works correctly for me. Perhaps one of the
> underlying plugins changed in a way to cause this issue, as we've only
> recently begun seeing it. I deleted my entire local repo before testing.
> See the attached simple project, which includes the erroneous report in the
> "target/site" folder. Click the line number, and you get a 404, unless you
> delete the "-test" from the URL.
--
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
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email