handle a missing ~/.m2/settings.xml more gracefully

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@578641 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2007-09-24 04:01:44 +00:00
parent 1ba3942757
commit 63c8806450
1 changed files with 8 additions and 1 deletions

View File

@ -134,7 +134,14 @@ public class DefaultMavenSettingsBuilder
{
if ( settingsFile == null )
{
getLogger().debug( "Settings file is null. Returning." );
getLogger().debug( "Settings file is null. Returning null." );
return null;
}
if ( !settingsFile.exists() )
{
getLogger().debug( "Settings file doesn't exist. Returning null." );
return null;
}