org.apache.maven.settings
Class DefaultMavenSettingsBuilder
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
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 585268 2007-10-16 21:43:07Z hboutemy $
- Author:
- jdcasey
Field Summary |
static java.lang.String |
userHome
|
Method Summary |
org.apache.maven.settings.Settings |
buildSettings()
|
org.apache.maven.settings.Settings |
buildSettings(boolean useCachedSettings)
|
org.apache.maven.settings.Settings |
buildSettings(java.io.File userSettingsFile)
|
org.apache.maven.settings.Settings |
buildSettings(java.io.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 |
userHome
public static final java.lang.String userHome
DefaultMavenSettingsBuilder
public DefaultMavenSettingsBuilder()
initialize
public void initialize()
- Specified by:
initialize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
buildSettings
public org.apache.maven.settings.Settings buildSettings()
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- Specified by:
buildSettings
in interface MavenSettingsBuilder
- Returns:
- a
Settings
object from the user settings file.
- Throws:
java.io.IOException
- if any
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- if any
buildSettings
public org.apache.maven.settings.Settings buildSettings(boolean useCachedSettings)
throws java.io.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:
java.io.IOException
- if any
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- if any
buildSettings
public org.apache.maven.settings.Settings buildSettings(java.io.File userSettingsFile)
throws java.io.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:
java.io.IOException
- if any
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- if any
buildSettings
public org.apache.maven.settings.Settings buildSettings(java.io.File userSettingsFile,
boolean useCachedSettings)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- Specified by:
buildSettings
in interface MavenSettingsBuilder
- Parameters:
userSettingsFile
- a given user settings fileuseCachedSettings
- if true, doesn't reload the user settings
- Returns:
- a
Settings
object from the user settings file.
- Throws:
java.io.IOException
- if any
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- if any
Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.