You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Carsten Karkola <ck...@mms-dresden.de> on 2006/05/16 09:13:29 UTC

checkstyle plugin and propertyExpansion

We have our own checkstyle config with some file referenzens. I tried
to use them with

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <configuration>
        <configLocation>${basedir}/../../checks.xml</configLocation>
          <propertyExpansion>
          header.regexp.file=${basedir}/../../header_regexp.txt
          </propertyExpansion>
        </configuration>
      </plugin>

this part of the pom is located in a supproject. Without the ${basedir} Maven didn't find the 
file header_regexp.txt if I call mvn site from the parent project. The ${basedir}-solution works 
fine on Unix (AIX) but fails on windows, where the directory separator is missed:

Embedded error: Error rendering Maven report: Failed during checkstyle configuration
d:ckkckk_nextTCdevcommonaxis\..\..\header_regexp.txt 

regards, carsten


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org