You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Immo Huneke (JIRA)" <ji...@codehaus.org> on 2007/04/11 18:35:46 UTC

[jira] Created: (MPMD-54) "excludes" appears to be ignored under Linux, even though it works fine under Windows

"excludes" appears to be ignored under Linux, even though it works fine under Windows
-------------------------------------------------------------------------------------

                 Key: MPMD-54
                 URL: http://jira.codehaus.org/browse/MPMD-54
             Project: Maven 2.x Pmd Plugin
          Issue Type: Bug
          Components: CPD, PMD
    Affects Versions: 2.2
         Environment: Red Hat Enterprise Linux 3 (64bit)
            Reporter: Immo Huneke
            Priority: Minor


The "excludes" configuration does not seem to work in all environments.  In my project I find that if I express the "excludes" clause in any of the following ways, it is honoured under Windows, but the affected source files are still included when the same project is built under Linux. I have explicitly made sure that version 2.2 of the PMD plugin is being used and that the same version of Maven is used in both environments:

                    <excludes>
                        <exclude>**/generated-sources/</exclude>
                    </excludes>

                    <excludes>
                        <exclude>**/generated-sources/**</exclude>
                    </excludes>

                    <excludes>
                        <exclude>**/generated-sources/**/*.java</exclude>
                    </excludes>


-- 
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: (MPMD-54) "excludes" appears to be ignored under Linux, even though it works fine under Windows

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

Dennis Lundberg closed MPMD-54.
-------------------------------

    Resolution: Cannot Reproduce

Closing this now.

> "excludes" appears to be ignored under Linux, even though it works fine under Windows
> -------------------------------------------------------------------------------------
>
>                 Key: MPMD-54
>                 URL: http://jira.codehaus.org/browse/MPMD-54
>             Project: Maven 2.x PMD Plugin
>          Issue Type: Bug
>          Components: CPD, PMD
>    Affects Versions: 2.2
>         Environment: Red Hat Enterprise Linux 3 (64bit)
>            Reporter: Immo Huneke
>            Priority: Minor
>
> The "excludes" configuration does not seem to work in all environments.  In my project I find that if I express the "excludes" clause in any of the following ways, it is honoured under Windows, but the affected source files are still included when the same project is built under Linux. I have explicitly made sure that version 2.2 of the PMD plugin is being used and that the same version of Maven is used in both environments:
>                     <excludes>
>                         <exclude>**/generated-sources/</exclude>
>                     </excludes>
>                     <excludes>
>                         <exclude>**/generated-sources/**</exclude>
>                     </excludes>
>                     <excludes>
>                         <exclude>**/generated-sources/**/*.java</exclude>
>                     </excludes>

-- 
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: (MPMD-54) "excludes" appears to be ignored under Linux, even though it works fine under Windows

Posted by "Immo Huneke (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPMD-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_115665 ] 

Immo Huneke commented on MPMD-54:
---------------------------------

Hi Xavier,

Sorry, that was many months ago and I have moved on to a different project. I therefore don't have an example I can show you. If this problem doesn't get reported by anyone else, it probably isn't important.

If anyone has an explicit example where the exclude configuration fails under Linux but works under Windows, please post it here.

Best regards,
Immo.

> "excludes" appears to be ignored under Linux, even though it works fine under Windows
> -------------------------------------------------------------------------------------
>
>                 Key: MPMD-54
>                 URL: http://jira.codehaus.org/browse/MPMD-54
>             Project: Maven 2.x PMD Plugin
>          Issue Type: Bug
>          Components: CPD, PMD
>    Affects Versions: 2.2
>         Environment: Red Hat Enterprise Linux 3 (64bit)
>            Reporter: Immo Huneke
>            Priority: Minor
>
> The "excludes" configuration does not seem to work in all environments.  In my project I find that if I express the "excludes" clause in any of the following ways, it is honoured under Windows, but the affected source files are still included when the same project is built under Linux. I have explicitly made sure that version 2.2 of the PMD plugin is being used and that the same version of Maven is used in both environments:
>                     <excludes>
>                         <exclude>**/generated-sources/</exclude>
>                     </excludes>
>                     <excludes>
>                         <exclude>**/generated-sources/**</exclude>
>                     </excludes>
>                     <excludes>
>                         <exclude>**/generated-sources/**/*.java</exclude>
>                     </excludes>

-- 
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: (MPMD-54) "excludes" appears to be ignored under Linux, even though it works fine under Windows

Posted by "Xavier Le Vourch (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPMD-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_115560 ] 

Xavier Le Vourch commented on MPMD-54:
--------------------------------------

Could you attach a complete example or at least the complete pom.xml  showing this behavior?

exclude seems to work fine on Linux for me using the code fragment you included.

> "excludes" appears to be ignored under Linux, even though it works fine under Windows
> -------------------------------------------------------------------------------------
>
>                 Key: MPMD-54
>                 URL: http://jira.codehaus.org/browse/MPMD-54
>             Project: Maven 2.x PMD Plugin
>          Issue Type: Bug
>          Components: CPD, PMD
>    Affects Versions: 2.2
>         Environment: Red Hat Enterprise Linux 3 (64bit)
>            Reporter: Immo Huneke
>            Priority: Minor
>
> The "excludes" configuration does not seem to work in all environments.  In my project I find that if I express the "excludes" clause in any of the following ways, it is honoured under Windows, but the affected source files are still included when the same project is built under Linux. I have explicitly made sure that version 2.2 of the PMD plugin is being used and that the same version of Maven is used in both environments:
>                     <excludes>
>                         <exclude>**/generated-sources/</exclude>
>                     </excludes>
>                     <excludes>
>                         <exclude>**/generated-sources/**</exclude>
>                     </excludes>
>                     <excludes>
>                         <exclude>**/generated-sources/**/*.java</exclude>
>                     </excludes>

-- 
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: (MPMD-54) "excludes" appears to be ignored under Linux, even though it works fine under Windows

Posted by "Immo Huneke (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPMD-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_92575 ] 

Immo Huneke commented on MPMD-54:
---------------------------------

The second and third examples above got garbled because the asterisks were interpreted as bold on/off by JIRA.

The patterns should be read as: {code}
                    <excludes>
                        <exclude>**/generated-sources/**</exclude>
                    </excludes>

                    <excludes>
                        <exclude>**/generated-sources/**/*.java</exclude>
                    </excludes>
{code}

> "excludes" appears to be ignored under Linux, even though it works fine under Windows
> -------------------------------------------------------------------------------------
>
>                 Key: MPMD-54
>                 URL: http://jira.codehaus.org/browse/MPMD-54
>             Project: Maven 2.x Pmd Plugin
>          Issue Type: Bug
>          Components: CPD, PMD
>    Affects Versions: 2.2
>         Environment: Red Hat Enterprise Linux 3 (64bit)
>            Reporter: Immo Huneke
>            Priority: Minor
>
> The "excludes" configuration does not seem to work in all environments.  In my project I find that if I express the "excludes" clause in any of the following ways, it is honoured under Windows, but the affected source files are still included when the same project is built under Linux. I have explicitly made sure that version 2.2 of the PMD plugin is being used and that the same version of Maven is used in both environments:
>                     <excludes>
>                         <exclude>**/generated-sources/</exclude>
>                     </excludes>
>                     <excludes>
>                         <exclude>**/generated-sources/**</exclude>
>                     </excludes>
>                     <excludes>
>                         <exclude>**/generated-sources/**/*.java</exclude>
>                     </excludes>

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