mirror of https://github.com/apache/maven.git
PR: MNG-1666
Submitted By: John Casey Fixed escaped expression handling in the plugin parameter expression evaluator. '$$' was not being replaced by '$' correctly. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@348489 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ffb7f270ab
commit
0e5015360b
|
@ -142,7 +142,14 @@ public class PluginParameterExpressionEvaluator
|
||||||
}
|
}
|
||||||
|
|
||||||
// Was not an expression
|
// Was not an expression
|
||||||
return expression.replaceAll( "\\$\\$", "$" );
|
if ( expression.indexOf( "$$" ) > -1 )
|
||||||
|
{
|
||||||
|
return expression.replaceAll( "\\$\\$", "\\$" );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return expression;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MojoDescriptor mojoDescriptor = mojoExecution.getMojoDescriptor();
|
MojoDescriptor mojoDescriptor = mojoExecution.getMojoDescriptor();
|
||||||
|
|
Loading…
Reference in New Issue