filtered resources contains incorrect content
---------------------------------------------

                 Key: MRESOURCES-65
                 URL: http://jira.codehaus.org/browse/MRESOURCES-65
             Project: Maven 2.x Resources Plugin
          Issue Type: Bug
    Affects Versions: 2.2
            Reporter: Pappy Razvan STANESCU
         Attachments: filtres.tar.gz

A project contains as resource the following Velocity template
\\
{code:none|title=src/main/resources/App.txt|borderStyle=solid}
${url}
${id}
${version}
${anotherProperty}

${infoBean.url}
${infoBean.id}
${infoBean.anotherProperty}
${infoBean.version}

${infoBean.myUrl}
${infoBean.myId}

${pom.version}
{code}

When filtering is set for this file the resulted output is wrong

{code:none|title=target/classes/App.txt|borderStyle=solid}
http://maven.apache.org
maven.bugs:filtres:jar:1.0-SNAPSHOT
1.0-SNAPSHOT
anotherValue

http://maven.apache.org
maven.bugs:filtres:jar:1.0-SNAPSHOT
${infoBean.anotherProperty}
1.0-SNAPSHOT

${infoBean.myUrl}
${infoBean.myId}

1.0-SNAPSHOT
{code}
\\
While it is acceptable to have ${pom.version} replaced or even ${id} or 
${version}, the ${infoBean.*} lines should be left untouched as long as such 
properties are not defined for the project.

A sample project is attached...



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

        

Reply via email to