Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.4
-
Fix Version/s: 2.5
-
Component/s: None
-
Labels:None
-
Environment:Windows XP, Java 1.6.0_16
-
Number of attachments :
Description
Create a simple file hello.txt under src/main/resources with following content:
"
This property $
but the one behind a @ will not be processed, as you
see: ${testProperty}
. You shouldn't see a property reference.
"
define a build section in your pom.xml like this
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>*/.txt</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<excludes>
<exclude>*/.txt</exclude>
</excludes>
</resource>
</resources>
Run the command:
mvn process-resources -DtestProperty=IwasReplaced
this produces the output
"
This property IwasReplaced was replaced
but the one behind a @ will not be processed, as you
see: $
. You shouldn't see a property reference.
"
As you see, the second property reference was not resolved. The replacement just stops after the @ character.
Issue Links
- depends upon
-
PLXCOMP-150
[plexus-interpolator] interpolator functions don't support if delimiter is used for something else (like @ in an email)
-
-
MSHARED-176
Add support of stopping at the end of line to prevent issue with endToken not found
-
- is duplicated by
-
MRESOURCES-117
maven-resources-plugin 2.4+ filtering broken
-
-
MRESOURCES-112
Default delimiters break filtering
-
-
MRESOURCES-129
resource:resource filtering fails when resource contains an @
-
-
MRESOURCES-133
if "<%@ page import = "java.util.List" %>" is present in a file, filtering does'nt work
-
-
MRESOURCES-136
Filtering in .properties breaks after encountering @
-
-
MRESOURCES-141
Filtering doesn't work when there is an odd number of @ in the resource
-
-
MRESOURCES-124
@ symbol in filtered resource prevents subsequent filters
-
- relates to
-
MRESOURCES-70
Filter does not process nested ${} variables
-
this isn't minor.. i just wasted 2 hours because of this