Using <includeTestSourceDirectory> element truncates xref link to "production" 
(non-test) classes
-------------------------------------------------------------------------------------------------

                 Key: MCHECKSTYLE-100
                 URL: http://jira.codehaus.org/browse/MCHECKSTYLE-100
             Project: Maven 2.x Checkstyle Plugin
          Issue Type: Bug
    Affects Versions: 2.2
         Environment: Linux (assume the same issue exists in all environs)
maven 2.0.9
            Reporter: Dan Rollo
         Attachments: pom.xml

When I include the <includeTestSourceDirectory> element, the source xref link 
for "production" (non-test) classes has a mangled URL: 
the first letter of the top level package is ommitted in the link:

Links to production source should be:
file:///.../jdbc4olap/target/site/xref/org/jdbc4olap/xmla/XmlaProperties.html#10

But the actual link created is:
                              <missing "o" of "org">
file:///.../jdbc4olap/target/site/xref/rg/jdbc4olap/xmla/XmlaProperties.html#10
                                                          ^

If I remove the <includeTestSourceDirectory> element, the xref links to
production sources are fine.

[BTW, there is a LICENSE.txt file at the root of my project (in case anyone
thought a missing default header file would affect this), and the checkstyle
report properly flags missing headers.]

pom.xml showing the problem is attached.

(Maybe related to MCHECKSTYLE-99 ?)

Dan Rollo

-- 
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

        

Reply via email to