org.apache.maven.embedder.execution
Class SettingsAdapter

java.lang.Object
  extended by org.apache.maven.settings.TrackableBase
      extended by org.apache.maven.settings.Settings
          extended by org.apache.maven.embedder.execution.SettingsAdapter
All Implemented Interfaces:
java.io.Serializable

public class SettingsAdapter
extends Settings

Adapt a MavenExecutionRequest to a Settings object for use in the Maven core. We want to make sure that what is ask for in the execution request overrides what is in the settings. The CLI feeds into an execution request so if a particular value is present in the execution request then we will take that over the value coming from the user settings.

Author:
Jason van Zyl
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.maven.settings.TrackableBase
GLOBAL_LEVEL, USER_LEVEL
 
Constructor Summary
SettingsAdapter(MavenExecutionRequest request, Settings settings)
           
 
Method Summary
 java.util.List getActiveProfiles()
           
 java.lang.String getLocalRepository()
           
 java.util.List getMirrors()
           
 java.util.List getPluginGroups()
           
 java.util.List getProfiles()
           
 java.util.List getProxies()
           
 RuntimeInfo getRuntimeInfo()
           
 java.util.List getServers()
           
 boolean isInteractiveMode()
           
 boolean isOffline()
           
 
Methods inherited from class org.apache.maven.settings.Settings
addActiveProfile, addMirror, addPluginGroup, addProfile, addProxy, addServer, flushActiveProxy, flushProfileMap, getActiveProxy, getInteractiveMode, getMirrorOf, getModelEncoding, getProfilesAsMap, getServer, isUsePluginRegistry, removeActiveProfile, removeMirror, removePluginGroup, removeProfile, removeProxy, removeServer, setActiveProfiles, setInteractiveMode, setLocalRepository, setMirrors, setModelEncoding, setOffline, setPluginGroups, setProfiles, setProxies, setRuntimeInfo, setServers, setUsePluginRegistry
 
Methods inherited from class org.apache.maven.settings.TrackableBase
getSourceLevel, setSourceLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SettingsAdapter

public SettingsAdapter(MavenExecutionRequest request,
                       Settings settings)
Method Detail

getLocalRepository

public java.lang.String getLocalRepository()
Overrides:
getLocalRepository in class Settings

isInteractiveMode

public boolean isInteractiveMode()
Overrides:
isInteractiveMode in class Settings

isOffline

public boolean isOffline()
Overrides:
isOffline in class Settings

getProxies

public java.util.List getProxies()
Overrides:
getProxies in class Settings

getServers

public java.util.List getServers()
Overrides:
getServers in class Settings

getMirrors

public java.util.List getMirrors()
Overrides:
getMirrors in class Settings

getProfiles

public java.util.List getProfiles()
Overrides:
getProfiles in class Settings

getActiveProfiles

public java.util.List getActiveProfiles()
Overrides:
getActiveProfiles in class Settings

getPluginGroups

public java.util.List getPluginGroups()
Overrides:
getPluginGroups in class Settings

getRuntimeInfo

public RuntimeInfo getRuntimeInfo()
Overrides:
getRuntimeInfo in class Settings


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