You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Rémy Sanlaville (JIRA)" <ji...@codehaus.org> on 2011/01/10 18:32:57 UTC

[jira] Created: (MRESOURCES-134) EspaceString doesn't work

EspaceString doesn't work
-------------------------

                 Key: MRESOURCES-134
                 URL: http://jira.codehaus.org/browse/MRESOURCES-134
             Project: Maven 2.x Resources Plugin
          Issue Type: Bug
    Affects Versions: 2.5
         Environment: maven 2.2.1
            Reporter: Rémy Sanlaville
         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

       

[jira] Commented: (MRESOURCES-134) EspaceString doesn't work

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRESOURCES-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=251337#action_251337 ] 

Dennis Lundberg commented on MRESOURCES-134:
--------------------------------------------

Your example
{noformat}
question=@message@
mailbox =contact@toto.com
{noformat}
works out of the box in 2.5-SNAPSHOT. You don't have to add any escapeString for it to work.

The escapeString parameter has no default value, which is why you have to configure it.

> 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

       

[jira] Commented: (MRESOURCES-134) EspaceString doesn't work

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRESOURCES-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=251693#action_251693 ] 

Dennis Lundberg commented on MRESOURCES-134:
--------------------------------------------

The escapeString does *not* have a default value. The text you are referring to is the "expression" for the parameter. This is a way to configure a value for through the command line. It would look like this:

{noformat}
mvn process-resources -Dmaven.resources.escapeString=§
{noformat}

By the way, where did you find that text? We should try to improve the documentation.


If you do not configure the escapeString no escaping should be done. So your example should work. Can you assemble a zip-file with the files you are using so that we can verify this?

> 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

       

[jira] Commented: (MRESOURCES-134) EspaceString doesn't work

Posted by "Rémy Sanlaville (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRESOURCES-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=251058#action_251058 ] 

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

I also try with #%comment to espace:§@toto@ and I have the same problem.


> EspaceString doesn't work
> -------------------------
>
>                 Key: MRESOURCES-134
>                 URL: http://jira.codehaus.org/browse/MRESOURCES-134
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>    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

       

[jira] Commented: (MRESOURCES-134) EspaceString doesn't work

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRESOURCES-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=251970#action_251970 ] 

Dennis Lundberg commented on MRESOURCES-134:
--------------------------------------------

Thanks for helping us verify that it is fixed.

> 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, MRESOURCES-134.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

       

[jira] Commented: (MRESOURCES-134) EspaceString doesn't work

Posted by "Rémy Sanlaville (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRESOURCES-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=251288#action_251288 ] 

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

As I said, I also try with #%comment to espace:§@toto@ and I have the same problem.
I don't think it is working as it should. 
Isn't it the same to [RESOURCES-110|http://jira.codehaus.org/browse/MRESOURCES-110]

Also, how to deal with this case?
{code:borderStyle=solid}
question=@message@
mailbox =contact@toto.com
{code} 
where I want to escape the @ of contact@toto.com


Dennis, In fact I wasn't in UTF-8 encoding but it does not change anything.

> 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

       

[jira] Commented: (MRESOURCES-134) EspaceString doesn't work

Posted by "Rémy Sanlaville (JIRA)" <ji...@codehaus.org>.
    [ 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 =contact@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

       

[jira] Commented: (MRESOURCES-134) EspaceString doesn't work

Posted by "Rémy Sanlaville (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRESOURCES-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=251875#action_251875 ] 

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

Dennis,

It works well for both your sample project and mine too (today).
I don't know why yesterday mine didn't worked.

Anyway, I'm glad that it's working as expected.
Thanks.

> 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, MRESOURCES-134.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

       

[jira] Commented: (MRESOURCES-134) EspaceString doesn't work

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRESOURCES-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=251199#action_251199 ] 

Olivier Lamy commented on MRESOURCES-134:
-----------------------------------------

IMHO this must be WON'T FIX
see http://maven.apache.org/plugins/maven-resources-plugin/examples/escape-filtering.html
escapeString is here to prevent escaping.
So in your line : #%comment to espace:§@toto
I don't see any filtering because the end token is missing.
Désolé :-)


> EspaceString doesn't work
> -------------------------
>
>                 Key: MRESOURCES-134
>                 URL: http://jira.codehaus.org/browse/MRESOURCES-134
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>    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

       

[jira] Commented: (MRESOURCES-134) EspaceString doesn't work

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRESOURCES-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=251708#action_251708 ] 

Olivier Lamy commented on MRESOURCES-134:
-----------------------------------------

documentation fixed in [rev 1059420|http://svn.apache.org/viewvc?rev=1059420&view=rev]

> 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

       

[jira] Closed: (MRESOURCES-134) EspaceString doesn't work

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

Dennis Lundberg closed MRESOURCES-134.
--------------------------------------

    Resolution: Won't Fix

I agree with Olivier. This is working as it should. No change is needed.

By the way, your sample project has an invalid character as the escapeString. It just shows up as a question mark icon in my Java based IDE. That could explain why you are having problems.

> 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

       

[jira] Updated: (MRESOURCES-134) EspaceString doesn't work

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

Dennis Lundberg updated MRESOURCES-134:
---------------------------------------

    Component/s: escape string

> 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

       

[jira] Updated: (MRESOURCES-134) EspaceString doesn't work

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

Dennis Lundberg updated MRESOURCES-134:
---------------------------------------

    Attachment: MRESOURCES-134.zip

Rémy,

Here's a sample project that looks like the one you are describing. This is working nicely for me. Can you please try it and see if it works for you?

> 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, MRESOURCES-134.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

       

[jira] Commented: (MRESOURCES-134) EspaceString doesn't work

Posted by "Rémy Sanlaville (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRESOURCES-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=251289#action_251289 ] 

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

With the last 2.5-SNAPSHOT it's now working. I do not have to define an escapeString in my property file

{code:title=src/main/resources/properties/test.properties|borderStyle=solid}
#%comment:@toto
question=@message@
mailbox =contact@toto.com
other.question=@validation@
{code} 

{code:title=target/classes/properties/test.properties|borderStyle=solid}
#%comment: @toto
question=A nice message...
mailbox =contact@toto.com
other.question=A validation message ?
{code} 

But, strangely, I have to configure the maven resource plugin with escapeString otherwise it does not work.

Also, #%comment to espace:§@toto does not work but it don't need it now.

> 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

       

[jira] Commented: (MRESOURCES-134) EspaceString doesn't work

Posted by "Rémy Sanlaville (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRESOURCES-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=251628#action_251628 ] 

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

The [escapeString parameter|http://maven.apache.org/plugins/maven-resources-plugin/resources-mojo.html] seems to have default value
{noformat}Expression preceded with the String won't be interpolated \${foo} 
will be replaced with ${foo}.
Default value is: ${maven.resources.escapeString}.
{noformat} 

Also I don't understand why I have to configure the plugin if I don't need any escapeString. If I remove this configuration, it does not work...
{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}

> 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