Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: delimiters
-
Labels:None
-
Environment: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"
-
Number of attachments :
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><%= * %></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><%=*%></delimiter> <delimiter><%=*%></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
Hm damn it... How do i escape escaping here?! I mean i also tried using lt; and #60; each with an ampersand before it.