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:
Brett Leslie Porter 2006-06-13 12:25:32 +00:00
parent 80ed9a822d
commit 11650b65db
1 changed files with 4 additions and 1 deletions

View File

@ -736,7 +736,10 @@ public class Verifier
private String resolveCommandLineArg( String key )
{
String result = key.replaceAll( "\\$\\{basedir\\}", basedir );
if ( result.indexOf( "\\\\" ) >= 0 )
{
result = result.replaceAll( "\\\\", "\\" );
}
result = result.replaceAll( "\\/\\/", "\\/" );
return result;