You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Miggel (JIRA)" <ji...@codehaus.org> on 2011/07/22 11:14:42 UTC

[jira] Created: (MWAR-258) Filtering of webResources stops on @ character

Filtering of webResources stops on @ character
----------------------------------------------

                 Key: MWAR-258
                 URL: https://jira.codehaus.org/browse/MWAR-258
             Project: Maven 2.x WAR Plugin
          Issue Type: Bug
    Affects Versions: 2.1.1, 2.1.2, 2.2
            Reporter: Miggel
            Priority: Minor
         Attachments: multiline-filtering.diff

This bug report and the attached patch are inspired by MRESOURCES-104.

Basically, the same problem described as in MRESOURCES-104 also exists for the WAR-plugin. If a resource file which shall be filtered contains the @ character, the filtering of this file will be stopped because the filter looks for the closing @ character. This can be fixed by updating the dependency of the Filter-plugin from 1.0-beta-2 to 1.0 and then making use of MavenResourcesExecution.setSupportMultiLineFiltering() - see the attached patch.

As I am not totally familiar with the way Maven plugins, I would appreciate it very much if someone could check my patch for correctness and then apply it. Thanks :-)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MWAR-258) Filtering of webResources stops on @ character

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

Dennis Lundberg updated MWAR-258:
---------------------------------

    Affects Version/s:     (was: 2.1.2)
                           (was: 2.2)

> Filtering of webResources stops on @ character
> ----------------------------------------------
>
>                 Key: MWAR-258
>                 URL: https://jira.codehaus.org/browse/MWAR-258
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Bug
>          Components: filtering
>    Affects Versions: 2.1.1
>            Reporter: Miggel
>            Priority: Minor
>         Attachments: multiline-filtering.diff
>
>
> This bug report and the attached patch are inspired by MRESOURCES-104.
> Basically, the same problem described as in MRESOURCES-104 also exists for the WAR-plugin. If a resource file which shall be filtered contains the @ character, the filtering of this file will be stopped because the filter looks for the closing @ character. This can be fixed by updating the dependency of the Filter-plugin from 1.0-beta-2 to 1.0 and then making use of MavenResourcesExecution.setSupportMultiLineFiltering() - see the attached patch.
> As I am not totally familiar with the way Maven plugins, I would appreciate it very much if someone could check my patch for correctness and then apply it. Thanks :-)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MWAR-258) Filtering of webResources stops on @ character

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

Dennis Lundberg updated MWAR-258:
---------------------------------

    Component/s: filtering

> Filtering of webResources stops on @ character
> ----------------------------------------------
>
>                 Key: MWAR-258
>                 URL: https://jira.codehaus.org/browse/MWAR-258
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Bug
>          Components: filtering
>    Affects Versions: 2.1.1, 2.1.2, 2.2
>            Reporter: Miggel
>            Priority: Minor
>         Attachments: multiline-filtering.diff
>
>
> This bug report and the attached patch are inspired by MRESOURCES-104.
> Basically, the same problem described as in MRESOURCES-104 also exists for the WAR-plugin. If a resource file which shall be filtered contains the @ character, the filtering of this file will be stopped because the filter looks for the closing @ character. This can be fixed by updating the dependency of the Filter-plugin from 1.0-beta-2 to 1.0 and then making use of MavenResourcesExecution.setSupportMultiLineFiltering() - see the attached patch.
> As I am not totally familiar with the way Maven plugins, I would appreciate it very much if someone could check my patch for correctness and then apply it. Thanks :-)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira