[ 
https://jira.codehaus.org/browse/MRESOURCES-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=280886#comment-280886
 ] 

Dennis Lundberg commented on MRESOURCES-141:
--------------------------------------------

Here is a workaround for this, that will work if you don't need use @ as a 
delimiter for filtered properties:

{code}
  <build>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <artifactId>maven-resources-plugin</artifactId>
        <version>2.5</version>
        <configuration>
          <delimiters>
            <delimiter>${*}</delimiter>
          </delimiters>
          <useDefaultDelimiters>false</useDefaultDelimiters>
        </configuration>
      </plugin>
    </plugins>
  </build>
{code}

> Filtering doesn't work when there is an odd number of @ in the resource
> -----------------------------------------------------------------------
>
>                 Key: MRESOURCES-141
>                 URL: https://jira.codehaus.org/browse/MRESOURCES-141
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>          Components: filtering
>    Affects Versions: 2.4.3, 2.5
>            Reporter: Roland Asmann
>            Assignee: Olivier Lamy
>         Attachments: eclipse_resources_test_project.zip, 
> IT-MRESOURCES-141.patch, resources-bug.zip
>
>
> When filtering a resource that contains an odd number of @, all variables 
> after the last @ are not replaced by the defined values.
> Attached a project that shows this behavior -- workaround is to uncomment the 
> configuration for the resources-plugin in the POM.

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

        

Reply via email to