o fixing finding of settings file

Submitted by: Eugene Kuleshove


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@505611 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2007-02-10 02:01:00 +00:00
parent 755f9683e1
commit f151b661dd
1 changed files with 5 additions and 0 deletions

View File

@ -51,6 +51,11 @@ public class DefaultMavenSettingsBuilder
{
Settings globalSettings = readSettings( globalSettingsFile );
if ( userSettingsFile == null )
{
userSettingsFile = new File( new File( System.getProperty( "user.home" ) ), ".m2/settings.xml" );
}
Settings userSettings = readSettings( userSettingsFile );
if ( globalSettings == null )