mirror of https://github.com/apache/maven.git
avoid string out of bounds exception
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@413884 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
80ed9a822d
commit
11650b65db
|
@ -736,7 +736,10 @@ public class Verifier
|
|||
private String resolveCommandLineArg( String key )
|
||||
{
|
||||
String result = key.replaceAll( "\\$\\{basedir\\}", basedir );
|
||||
result = result.replaceAll( "\\\\", "\\" );
|
||||
if ( result.indexOf( "\\\\" ) >= 0 )
|
||||
{
|
||||
result = result.replaceAll( "\\\\", "\\" );
|
||||
}
|
||||
result = result.replaceAll( "\\/\\/", "\\/" );
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue