org.apache.maven.settings
Class DefaultMavenSettingsBuilder

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.settings.DefaultMavenSettingsBuilder
All Implemented Interfaces:
MavenSettingsBuilder, org.codehaus.plexus.logging.LogEnabled, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable

public class DefaultMavenSettingsBuilder
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements MavenSettingsBuilder, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable

Version:
$Id: DefaultMavenSettingsBuilder.java 747683 2009-02-25 06:52:54Z brett $
Author:
jdcasey

Field Summary
static String userHome
           
 
Fields inherited from interface org.apache.maven.settings.MavenSettingsBuilder
ALT_GLOBAL_SETTINGS_XML_LOCATION, ALT_LOCAL_REPOSITORY_LOCATION, ALT_USER_SETTINGS_XML_LOCATION, ROLE
 
Constructor Summary
DefaultMavenSettingsBuilder()
           
 
Method Summary
 Settings buildSettings()
           
 Settings buildSettings(boolean useCachedSettings)
           
 Settings buildSettings(File userSettingsFile)
           
 Settings buildSettings(File userSettingsFile, boolean useCachedSettings)
           
 void initialize()
           
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userHome

public static final String userHome
Constructor Detail

DefaultMavenSettingsBuilder

public DefaultMavenSettingsBuilder()
Method Detail

initialize

public void initialize()
Specified by:
initialize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable

buildSettings

public Settings buildSettings()
                       throws IOException,
                              org.codehaus.plexus.util.xml.pull.XmlPullParserException
Specified by:
buildSettings in interface MavenSettingsBuilder
Returns:
a Settings object from the user settings file.
Throws:
IOException - if any
org.codehaus.plexus.util.xml.pull.XmlPullParserException - if any

buildSettings

public Settings buildSettings(boolean useCachedSettings)
                       throws IOException,
                              org.codehaus.plexus.util.xml.pull.XmlPullParserException
Specified by:
buildSettings in interface MavenSettingsBuilder
Parameters:
useCachedSettings - if true, doesn't reload the user settings
Returns:
a Settings object from the user settings file.
Throws:
IOException - if any
org.codehaus.plexus.util.xml.pull.XmlPullParserException - if any

buildSettings

public Settings buildSettings(File userSettingsFile)
                       throws IOException,
                              org.codehaus.plexus.util.xml.pull.XmlPullParserException
Specified by:
buildSettings in interface MavenSettingsBuilder
Parameters:
userSettingsFile - a given user settings file
Returns:
a Settings object from the user settings file.
Throws:
IOException - if any
org.codehaus.plexus.util.xml.pull.XmlPullParserException - if any

buildSettings

public Settings buildSettings(File userSettingsFile,
                              boolean useCachedSettings)
                       throws IOException,
                              org.codehaus.plexus.util.xml.pull.XmlPullParserException
Specified by:
buildSettings in interface MavenSettingsBuilder
Parameters:
userSettingsFile - a given user settings file
useCachedSettings - if true, doesn't reload the user settings
Returns:
a Settings object from the user settings file.
Throws:
IOException - if any
org.codehaus.plexus.util.xml.pull.XmlPullParserException - if any


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.