[ 
http://jira.codehaus.org/browse/MRESOURCES-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=251801#action_251801
 ] 

Rémy Sanlaville commented on MRESOURCES-134:
--------------------------------------------

@Dennis: The text was taken from the documentation 
(http://maven.apache.org/plugins/maven-resources-plugin/resources-mojo.html). 
Thanks @Olivier for the fixed.

You can try with the attached example maven-resources-plugin-EscapeString.zip
If I remove the resource plugin configuration, I have this result (even with 
the last 2.5-SNAPSHOT version)

{code:title=target/classes/properties/test.properties|borderStyle=solid}
#%comment: @toto
question=@message@
mailbox =cont...@toto.com

#%comment
other.question=A validation message ?
{code} 


> EspaceString doesn't work
> -------------------------
>
>                 Key: MRESOURCES-134
>                 URL: http://jira.codehaus.org/browse/MRESOURCES-134
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>          Components: escape string
>    Affects Versions: 2.5
>         Environment: maven 2.2.1
>            Reporter: Rémy Sanlaville
>            Assignee: Olivier Lamy
>         Attachments: maven-resources-plugin-EscapeString.zip
>
>
> if I configure the maven-resource-plugin in order to escape a delimiter in a 
> comment, the escapeString is not removed in the target.
> {code:title=src/main/resources/properties/test.properties|borderStyle=solid}
> #%comment to espace:§@toto
> question=@message@
> {code} 
> {code:title=pom.xml|borderStyle=solid}
>  <plugin>
>    <groupId>org.apache.maven.plugins</groupId>
>    <artifactId>maven-resources-plugin</artifactId>
>    <version>2.5-SNAPSHOT</version>
>    <configuration>
>      <escapeString>§</escapeString>
>    </configuration>  
>  </plugin>
> {code} 
> {code:title=target/classes/properties/test.properties|borderStyle=solid}
> #%comment to espace:§@toto
> question=A nice message...
> {code}

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