You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "kerboriou christophe (JIRA)" <ji...@codehaus.org> on 2007/08/14 17:23:47 UTC

[jira] Created: (MCHECKSTYLE-76) don't check the test code

don't check the test code
-------------------------

                 Key: MCHECKSTYLE-76
                 URL: http://jira.codehaus.org/browse/MCHECKSTYLE-76
             Project: Maven 2.x Checkstyle Plugin
          Issue Type: Bug
    Affects Versions: 2.1
         Environment: windos, standar conf projet (juste parent pom)
            Reporter: kerboriou christophe
            Priority: Critical
             Fix For: 2.2


the parm for excute checkstyle on test code was at true. and i have this log
{panel} [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-checkstyle-plugin:2.1:checkstyle' -->
[DEBUG]   (f) cacheFile = D:\workspaces\workspace\{sous-projet}\target/checkstyle-cachefile
[DEBUG]   (f) configLocation = http://xxxx/xxxx/xxxx/checkstyle_config.xml
[DEBUG]   (f) consoleOutput = false
[DEBUG]   (f) enableFilesSummary = true
[DEBUG]   (f) enableRSS = true
[DEBUG]   (f) enableRulesSummary = true
[DEBUG]   (f) enableSeveritySummary = true
[DEBUG]   (f) failsOnError = false
[DEBUG]   (f) format = sun
[DEBUG]   (f) headerFile = D:\workspaces\workspace\{sous-projet}\LICENSE.txt
[DEBUG]   (f) headerLocation = LICENSE.txt
[DEBUG]   (f) includes = **/*.java
[DEBUG]   (f) linkXRef = true
[DEBUG]   (f) outputDirectory = D:\workspaces\workspace\{sous-projet}\target\site
[DEBUG]   (f) outputFile = D:\workspaces\workspace\{sous-projet}\target\checkstyle-result.xml
[DEBUG]   (f) outputFileFormat = xml
[DEBUG]   (f) project = org.apache.maven.project.MavenProject@62075285
[DEBUG]   {color:red} *(f) sourceDirectory = D:\workspaces\workspace\{sous-projet}\src\main\java*{color}
[DEBUG]   (f) xrefLocation = D:\workspaces\workspace\{sous-projet}\target\site\xref
[DEBUG] -- end configuration --
[INFO] [checkstyle:checkstyle]
[DEBUG] resolveLocation(http://xxxx/xxxx/xxxx/checkstyle_config.xml, checkstyle-checker.xml)
[DEBUG] Potential URL: http://xxxx/xxxx/xxxx/checkstyle_config.xml
[DEBUG] resolveLocation(null, checkstyle-checker.properties)
[DEBUG] resolveLocation(LICENSE.txt, checkstyle-header.txt)
[DEBUG] Location is not a URL.
[DEBUG] Location is not a File.
[DEBUG] Potential Resource: jar:file:/C:/dev/maven/bin/../lib/jsch-0.1.24.jar!/LICENSE.txt
[DEBUG] resolveLocation(null, checkstyle-packages.xml)
[DEBUG] resolveLocation(null, checkstyle-suppressions.xml)
[DEBUG] File D:\workspaces\workspace\{sous-projet}\target\site/checkstyle.rss created...{panel}

the src/test/java wasn't use.

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

        

[jira] Commented: (MCHECKSTYLE-76) don't check the test code

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCHECKSTYLE-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_104942 ] 

Dennis Lundberg commented on MCHECKSTYLE-76:
--------------------------------------------

Are you saying that the checkstyle plugin is *not* checking your test sources? But that you expect it to do so?

Can you please provide a pom.xml that shows us the configuration that you used.

> don't check the test code
> -------------------------
>
>                 Key: MCHECKSTYLE-76
>                 URL: http://jira.codehaus.org/browse/MCHECKSTYLE-76
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: windos, standar conf projet (juste parent pom)
>            Reporter: kerboriou christophe
>            Priority: Critical
>             Fix For: 2.2
>
>
> the parm for excute checkstyle on test code was at true. and i have this log
> {panel} [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-checkstyle-plugin:2.1:checkstyle' -->
> [DEBUG]   (f) cacheFile = D:\workspaces\workspace\{sous-projet}\target/checkstyle-cachefile
> [DEBUG]   (f) configLocation = http://xxxx/xxxx/xxxx/checkstyle_config.xml
> [DEBUG]   (f) consoleOutput = false
> [DEBUG]   (f) enableFilesSummary = true
> [DEBUG]   (f) enableRSS = true
> [DEBUG]   (f) enableRulesSummary = true
> [DEBUG]   (f) enableSeveritySummary = true
> [DEBUG]   (f) failsOnError = false
> [DEBUG]   (f) format = sun
> [DEBUG]   (f) headerFile = D:\workspaces\workspace\{sous-projet}\LICENSE.txt
> [DEBUG]   (f) headerLocation = LICENSE.txt
> [DEBUG]   (f) includes = **/*.java
> [DEBUG]   (f) linkXRef = true
> [DEBUG]   (f) outputDirectory = D:\workspaces\workspace\{sous-projet}\target\site
> [DEBUG]   (f) outputFile = D:\workspaces\workspace\{sous-projet}\target\checkstyle-result.xml
> [DEBUG]   (f) outputFileFormat = xml
> [DEBUG]   (f) project = org.apache.maven.project.MavenProject@62075285
> [DEBUG]   {color:red} *(f) sourceDirectory = D:\workspaces\workspace\{sous-projet}\src\main\java*{color}
> [DEBUG]   (f) xrefLocation = D:\workspaces\workspace\{sous-projet}\target\site\xref
> [DEBUG] -- end configuration --
> [INFO] [checkstyle:checkstyle]
> [DEBUG] resolveLocation(http://xxxx/xxxx/xxxx/checkstyle_config.xml, checkstyle-checker.xml)
> [DEBUG] Potential URL: http://xxxx/xxxx/xxxx/checkstyle_config.xml
> [DEBUG] resolveLocation(null, checkstyle-checker.properties)
> [DEBUG] resolveLocation(LICENSE.txt, checkstyle-header.txt)
> [DEBUG] Location is not a URL.
> [DEBUG] Location is not a File.
> [DEBUG] Potential Resource: jar:file:/C:/dev/maven/bin/../lib/jsch-0.1.24.jar!/LICENSE.txt
> [DEBUG] resolveLocation(null, checkstyle-packages.xml)
> [DEBUG] resolveLocation(null, checkstyle-suppressions.xml)
> [DEBUG] File D:\workspaces\workspace\{sous-projet}\target\site/checkstyle.rss created...{panel}
> the src/test/java wasn't use.

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

        

[jira] Closed: (MCHECKSTYLE-76) don't check the test code

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MCHECKSTYLE-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg closed MCHECKSTYLE-76.
--------------------------------------

      Assignee: Dennis Lundberg
    Resolution: Fixed

That parameter is available from version 2.2 of the plugin. Unfortunately the site did not mention this, so I have fixed the documentation.

> don't check the test code
> -------------------------
>
>                 Key: MCHECKSTYLE-76
>                 URL: http://jira.codehaus.org/browse/MCHECKSTYLE-76
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: windos, standar conf projet (juste parent pom)
>            Reporter: kerboriou christophe
>            Assignee: Dennis Lundberg
>            Priority: Critical
>             Fix For: 2.2
>
>
> the parm for excute checkstyle on test code was at true. and i have this log
> {panel} [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-checkstyle-plugin:2.1:checkstyle' -->
> [DEBUG]   (f) cacheFile = D:\workspaces\workspace\{sous-projet}\target/checkstyle-cachefile
> [DEBUG]   (f) configLocation = http://xxxx/xxxx/xxxx/checkstyle_config.xml
> [DEBUG]   (f) consoleOutput = false
> [DEBUG]   (f) enableFilesSummary = true
> [DEBUG]   (f) enableRSS = true
> [DEBUG]   (f) enableRulesSummary = true
> [DEBUG]   (f) enableSeveritySummary = true
> [DEBUG]   (f) failsOnError = false
> [DEBUG]   (f) format = sun
> [DEBUG]   (f) headerFile = D:\workspaces\workspace\{sous-projet}\LICENSE.txt
> [DEBUG]   (f) headerLocation = LICENSE.txt
> [DEBUG]   (f) includes = **/*.java
> [DEBUG]   (f) linkXRef = true
> [DEBUG]   (f) outputDirectory = D:\workspaces\workspace\{sous-projet}\target\site
> [DEBUG]   (f) outputFile = D:\workspaces\workspace\{sous-projet}\target\checkstyle-result.xml
> [DEBUG]   (f) outputFileFormat = xml
> [DEBUG]   (f) project = org.apache.maven.project.MavenProject@62075285
> [DEBUG]   {color:red} *(f) sourceDirectory = D:\workspaces\workspace\{sous-projet}\src\main\java*{color}
> [DEBUG]   (f) xrefLocation = D:\workspaces\workspace\{sous-projet}\target\site\xref
> [DEBUG] -- end configuration --
> [INFO] [checkstyle:checkstyle]
> [DEBUG] resolveLocation(http://xxxx/xxxx/xxxx/checkstyle_config.xml, checkstyle-checker.xml)
> [DEBUG] Potential URL: http://xxxx/xxxx/xxxx/checkstyle_config.xml
> [DEBUG] resolveLocation(null, checkstyle-checker.properties)
> [DEBUG] resolveLocation(LICENSE.txt, checkstyle-header.txt)
> [DEBUG] Location is not a URL.
> [DEBUG] Location is not a File.
> [DEBUG] Potential Resource: jar:file:/C:/dev/maven/bin/../lib/jsch-0.1.24.jar!/LICENSE.txt
> [DEBUG] resolveLocation(null, checkstyle-packages.xml)
> [DEBUG] resolveLocation(null, checkstyle-suppressions.xml)
> [DEBUG] File D:\workspaces\workspace\{sous-projet}\target\site/checkstyle.rss created...{panel}
> the src/test/java wasn't use.

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

        

[jira] Commented: (MCHECKSTYLE-76) don't check the test code

Posted by "kerboriou christophe (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCHECKSTYLE-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_104984 ] 

kerboriou christophe commented on MCHECKSTYLE-76:
-------------------------------------------------

{code}
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-checkstyle-plugin</artifactId>
  <configuration>
	<outputFileFormat>xml</outputFileFormat>
	<includeTestSourceDirectory>
	true
	</includeTestSourceDirectory>
	<configLocation>
	http://xxxx/xxxx/xxxx/checkstyle_config.xml
	</configLocation>
  </configuration>
</plugin>{code}


> don't check the test code
> -------------------------
>
>                 Key: MCHECKSTYLE-76
>                 URL: http://jira.codehaus.org/browse/MCHECKSTYLE-76
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: windos, standar conf projet (juste parent pom)
>            Reporter: kerboriou christophe
>            Priority: Critical
>             Fix For: 2.2
>
>
> the parm for excute checkstyle on test code was at true. and i have this log
> {panel} [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-checkstyle-plugin:2.1:checkstyle' -->
> [DEBUG]   (f) cacheFile = D:\workspaces\workspace\{sous-projet}\target/checkstyle-cachefile
> [DEBUG]   (f) configLocation = http://xxxx/xxxx/xxxx/checkstyle_config.xml
> [DEBUG]   (f) consoleOutput = false
> [DEBUG]   (f) enableFilesSummary = true
> [DEBUG]   (f) enableRSS = true
> [DEBUG]   (f) enableRulesSummary = true
> [DEBUG]   (f) enableSeveritySummary = true
> [DEBUG]   (f) failsOnError = false
> [DEBUG]   (f) format = sun
> [DEBUG]   (f) headerFile = D:\workspaces\workspace\{sous-projet}\LICENSE.txt
> [DEBUG]   (f) headerLocation = LICENSE.txt
> [DEBUG]   (f) includes = **/*.java
> [DEBUG]   (f) linkXRef = true
> [DEBUG]   (f) outputDirectory = D:\workspaces\workspace\{sous-projet}\target\site
> [DEBUG]   (f) outputFile = D:\workspaces\workspace\{sous-projet}\target\checkstyle-result.xml
> [DEBUG]   (f) outputFileFormat = xml
> [DEBUG]   (f) project = org.apache.maven.project.MavenProject@62075285
> [DEBUG]   {color:red} *(f) sourceDirectory = D:\workspaces\workspace\{sous-projet}\src\main\java*{color}
> [DEBUG]   (f) xrefLocation = D:\workspaces\workspace\{sous-projet}\target\site\xref
> [DEBUG] -- end configuration --
> [INFO] [checkstyle:checkstyle]
> [DEBUG] resolveLocation(http://xxxx/xxxx/xxxx/checkstyle_config.xml, checkstyle-checker.xml)
> [DEBUG] Potential URL: http://xxxx/xxxx/xxxx/checkstyle_config.xml
> [DEBUG] resolveLocation(null, checkstyle-checker.properties)
> [DEBUG] resolveLocation(LICENSE.txt, checkstyle-header.txt)
> [DEBUG] Location is not a URL.
> [DEBUG] Location is not a File.
> [DEBUG] Potential Resource: jar:file:/C:/dev/maven/bin/../lib/jsch-0.1.24.jar!/LICENSE.txt
> [DEBUG] resolveLocation(null, checkstyle-packages.xml)
> [DEBUG] resolveLocation(null, checkstyle-suppressions.xml)
> [DEBUG] File D:\workspaces\workspace\{sous-projet}\target\site/checkstyle.rss created...{panel}
> the src/test/java wasn't use.

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