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:
John Dennis Casey 2005-11-23 17:01:09 +00:00
parent ffb7f270ab
commit 0e5015360b
1 changed files with 8 additions and 1 deletions

View File

@ -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();