Hello *!

My question is: How can I configure the checkstyle plugin so that the
checkstyle report of the subprojects reference the jxr report of the module
project in the parent folder?

The destination of the jxr generated files is in the root project of the
multi-project. The structure of the deployed site is

  module-project
      xref (aggregated)
      javadoc (aggregated)
      subproject-1
          checkstyle.html
          ...
      subproject-2
      ....
      parent-pom-project (references the corporation POM as parent)


My configuration for the checkstyle plugin is in the corporation POM :
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-checkstyle-plugin</artifactId>
  <version>2.3</version>
  <inherited>true</inherited>
  <configuration>
    <configLocation>checkstyle.xml</configLocation>
   
<useFile>${project.reporting.outputDirectory}/checkstyle-report.txt</useFile>
    <xrefLocation>${xrefLocation}</xrefLocation>
    <xrefTestLocation>${xrefTestLocation}</xrefTestLocation>
  </configuration>
</plugin>

What I want to do is to give the checkstyle-plugin a hint to reference the
aggregated report in the parent folder. So the declaration of the variables
above would be:

                <xrefLocation>../xref</xrefLocation>
                <xrefTestLocation>../xref-test</xrefTestLocation>

But this does not work since the properties are instances of java.io.File
and the relative path is calculated by 

  String relativePath = PathTool.getRelativePath(getOutputDirectory(),
xrefLocation.getAbsolutePath());

What is the proper value for xrefLocation/xrefTestLocation in the case of a
multi-project with an aggregated jxr report in the parent folder?

Thank you in advance!

  Robert



-- 
View this message in context: 
http://www.nabble.com/Proper-use-of-checkstyle%27s-xrefLocation-for-aggregated-jxr-report-tp21147473p21147473.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to