[
https://jira.codehaus.org/browse/MSHARED-292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James Vaudry updated MSHARED-292:
---------------------------------
Description:
I configured the <escapeString>\</escapeString>
Input:
{noformat}
<properties>
<escaped.foo>\${foo}</escaped.foo>
<escaped.user.home>\${user.home}</escaped.user.home>
<properties>
{noformat}
File to filter:
{noformat}
a=${escaped.foo}
b=\${foo}
c=${escaped.user.home}
d=\${user.home}
{noformat}
Expected filtered result:
{noformat}
a=${foo}
b=${foo}
c=${user.home}
d=${user.home}
{noformat}
Actual filtered result:
{noformat}
a=${foo}
b=${foo}
c=\/home/username
d=${user.home}
{noformat}
In the above, the result for "c" is incorrect. Notice this only happens when
two conditions occur:
# The value being substituted is an escaped variable
# The escaped variable is a Java System Property (user.home, java.home, etc...)
was:
I configured the <escapeString>\</escapeString>
Input:
{noformat}
test1=\${foo}
test2=\${user.home}
{noformat}
Expected filtered result:
{noformat}
test1=${foo}
test2=${user.home}
{noformat}
Actual filtered result:
{noformat}
test1=${foo}
test2=\/home/username
{noformat}
>From my testing, it seems any Java System Property (user.home, java.home,
>etc...) does not work with Maven escape filtering. Other variables like foo
>work just fine.
> Escape filtering of Java System Property variables does not work
> ----------------------------------------------------------------
>
> Key: MSHARED-292
> URL: https://jira.codehaus.org/browse/MSHARED-292
> Project: Maven Shared Components
> Issue Type: Bug
> Environment: Maven 3.0.4
> maven-war-plugin:2.4
> Reporter: James Vaudry
>
> I configured the <escapeString>\</escapeString>
> Input:
> {noformat}
> <properties>
> <escaped.foo>\${foo}</escaped.foo>
> <escaped.user.home>\${user.home}</escaped.user.home>
> <properties>
> {noformat}
> File to filter:
> {noformat}
> a=${escaped.foo}
> b=\${foo}
> c=${escaped.user.home}
> d=\${user.home}
> {noformat}
> Expected filtered result:
> {noformat}
> a=${foo}
> b=${foo}
> c=${user.home}
> d=${user.home}
> {noformat}
> Actual filtered result:
> {noformat}
> a=${foo}
> b=${foo}
> c=\/home/username
> d=${user.home}
> {noformat}
> In the above, the result for "c" is incorrect. Notice this only happens when
> two conditions occur:
> # The value being substituted is an escaped variable
> # The escaped variable is a Java System Property (user.home, java.home,
> etc...)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira