Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-198

custom delimiters doesn't work as expected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • maven-filtering-1.0
    • maven-filtering-1.2
    • maven-filtering
    • None

    Description

      The algorithm doesn't work as described in http://maven.apache.org/plugins/maven-resources-plugin/apidocs/org/apache/maven/plugin/resources/ResourcesMojo.html#delimiters
      The implementation of org.apache.maven.shared.filtering.MultiDelimiterInterpolatorFilterReaderLineEnding.read() contains several bugs
      if the first letter of the endToken is contained in the propertyname then the property is not filtered.
      (e.g. abcFILTER.a.MEabc)
      if the first letter of the endToken is contained in the startToken then the property is not filtered.
      (e.g. aaaFILTER.a.MEaaa)

      <plugin>
        <artifactId>maven-resources-plugin</artifactId>
        <configuration>
         <useDefaultDelimiters>false</useDefaultDelimiters>
         <delimiters>
           <delimiter>aaa*aaa</delimiter>
           <delimiter>abc*abc</delimiter>
         </delimiters>
        </configuration>
      </plugin>
      

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            mtomcat_daobi Björn Michael
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: