Uploaded image for project: 'Maven Resources Plugin'
  1. Maven Resources Plugin
  2. MRESOURCES-130

Using < within a delimiter does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • delimiters
    • None
    • Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
      Java version: 1.6.0_20
      Default locale: de_DE, platform encoding: Cp1252
      OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

    Description

      Hi guys,

      I am trying to use the pattern <%=*%> as a delimiter and it is not working.

      This is the snippet from my pom.xml:

               <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-resources-plugin</artifactId>
                  <version>2.4.3</version>
                  <configuration>
                     <delimiters>
                        <delimiter>&lt;%= * %></delimiter>
                     </delimiters>
                     <encoding>UTF-8</encoding>
                  </configuration>
               </plugin>
      

      The resource plugin seems to handle that well like its output let me guess:

      [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-resources-plugin:2.4.3:resources' -->
      [DEBUG]   (f) buildFilters = [C:\XXXX.properties]
      [DEBUG]   (s) delimiters = [<%= * %>, lll]
      [DEBUG]   (f) encoding = UTF-8
      [DEBUG]   (f) escapeWindowsPaths = true
      [DEBUG]   (s) includeEmptyDirs = false
      [DEBUG]   (s) outputDirectory = C:\XXXX
      [DEBUG]   (s) overwrite = false
      ...
      [DEBUG]   (f) useBuildFilters = true
      [DEBUG]   (s) useDefaultDelimiters = false
      [DEBUG] -- end configuration --
      

      Looking into the resulting files shows me that NOTHING was filtered...
      I also tried specifying the delimiter like this:

      <delimiter><%=*%></delimiter>
      <delimiter>&lt;%=*%></delimiter>
      <delimiter>&#60;%=*%></delimiter>
      <delimiter><![CDATA[<%=*%>]]></delimiter>
      

      Nothing worked.

      Please fix this or give me any hint what I am doing wrong. I didnt get a reply on the mailing list (http://maven.40175.n5.nabble.com/Using-lt-gt-as-delimiter-td3265330.html).

      Thx a lot

      Cheers
      Christian

      Attachments

        Activity

          People

            khmarbaise Karl Heinz Marbaise
            christian13 Christian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: