Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.5
    • Fix Version/s: None
    • Component/s: escape string
    • Labels:
      None
    • Environment:
      maven 2.2.1
    • Number of attachments :
      2

      Description

      if I configure the maven-resource-plugin in order to escape a delimiter in a comment, the escapeString is not removed in the target.

      src/main/resources/properties/test.properties
      #%comment to espace:§@toto
      question=@message@
      
      pom.xml
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-resources-plugin</artifactId>
         <version>2.5-SNAPSHOT</version>
         <configuration>
           <escapeString>§</escapeString>
         </configuration>  
       </plugin>
      
      target/classes/properties/test.properties
      #%comment to espace:§@toto
      question=A nice message...
      

        Activity

        Hide
        Olivier Lamy added a comment -

        documentation fixed in rev 1059420

        Show
        Olivier Lamy added a comment - documentation fixed in rev 1059420
        Hide
        Rémy Sanlaville added a comment -

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

        target/classes/properties/test.properties
        #%comment: @toto
        question=@message@
        mailbox =contact@toto.com
        
        #%comment
        other.question=A validation message ?
        
        Show
        Rémy Sanlaville added a comment - @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) target/classes/properties/test.properties #%comment: @toto question=@message@ mailbox =contact@toto.com #%comment other.question=A validation message ?
        Hide
        Dennis Lundberg added a comment -

        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?

        Show
        Dennis Lundberg added a comment - 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?
        Hide
        Rémy Sanlaville added a comment -

        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.

        Show
        Rémy Sanlaville added a comment - 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.
        Hide
        Dennis Lundberg added a comment -

        Thanks for helping us verify that it is fixed.

        Show
        Dennis Lundberg added a comment - Thanks for helping us verify that it is fixed.

          People

          • Assignee:
            Olivier Lamy
            Reporter:
            Rémy Sanlaville
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: