Class DefaultSettingsBuildingRequest
java.lang.Object
org.apache.maven.settings.building.DefaultSettingsBuildingRequest
- All Implemented Interfaces:
SettingsBuildingRequest
Collects settings that control building of effective settings.
- Author:
- Benjamin Bentmann
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the global settings file.Gets the global settings source.Gets the system properties to use for interpolation.Gets the user properties to use for interpolation.Gets the user settings file.Gets the user settings source.setGlobalSettingsFile(File globalSettingsFile) Sets the global settings file.setGlobalSettingsSource(SettingsSource globalSettingsSource) Sets the global settings source.setSystemProperties(Properties systemProperties) Sets the system properties to use for interpolation.setUserProperties(Properties userProperties) Sets the user properties to use for interpolation.setUserSettingsFile(File userSettingsFile) Sets the user settings file.setUserSettingsSource(SettingsSource userSettingsSource) Sets the user settings source.
-
Constructor Details
-
DefaultSettingsBuildingRequest
public DefaultSettingsBuildingRequest()
-
-
Method Details
-
getGlobalSettingsFile
Description copied from interface:SettingsBuildingRequestGets the global settings file.- Specified by:
getGlobalSettingsFilein interfaceSettingsBuildingRequest- Returns:
- The global settings file or
nullif none.
-
setGlobalSettingsFile
Description copied from interface:SettingsBuildingRequestSets the global settings file. A non-existent settings file is equivalent to empty settings. If both user settings and global settings are given, the user settings take precedence.- Specified by:
setGlobalSettingsFilein interfaceSettingsBuildingRequest- Parameters:
globalSettingsFile- The global settings file, may benullto disable global settings.- Returns:
- This request, never
null.
-
getGlobalSettingsSource
Description copied from interface:SettingsBuildingRequestGets the global settings source.- Specified by:
getGlobalSettingsSourcein interfaceSettingsBuildingRequest- Returns:
- The global settings source or
nullif none.
-
setGlobalSettingsSource
Description copied from interface:SettingsBuildingRequestSets the global settings source. If both user settings and a global settings are given, the user settings take precedence.- Specified by:
setGlobalSettingsSourcein interfaceSettingsBuildingRequest- Parameters:
globalSettingsSource- The global settings source, may benullto disable global settings.- Returns:
- This request, never
null.
-
getUserSettingsFile
Description copied from interface:SettingsBuildingRequestGets the user settings file.- Specified by:
getUserSettingsFilein interfaceSettingsBuildingRequest- Returns:
- The user settings file or
nullif none.
-
setUserSettingsFile
Description copied from interface:SettingsBuildingRequestSets the user settings file. A non-existent settings file is equivalent to empty settings. If both a user settings file and a global settings file are given, the user settings take precedence.- Specified by:
setUserSettingsFilein interfaceSettingsBuildingRequest- Parameters:
userSettingsFile- The user settings file, may benullto disable user settings.- Returns:
- This request, never
null.
-
getUserSettingsSource
Description copied from interface:SettingsBuildingRequestGets the user settings source.- Specified by:
getUserSettingsSourcein interfaceSettingsBuildingRequest- Returns:
- The user settings source or
nullif none.
-
setUserSettingsSource
Description copied from interface:SettingsBuildingRequestSets the user settings source. If both user settings and a global settings are given, the user settings take precedence.- Specified by:
setUserSettingsSourcein interfaceSettingsBuildingRequest- Parameters:
userSettingsSource- The user settings source, may benullto disable user settings.- Returns:
- This request, never
null.
-
getSystemProperties
Description copied from interface:SettingsBuildingRequestGets the system properties to use for interpolation. The system properties are collected from the runtime environment likeSystem.getProperties()and environment variables.- Specified by:
getSystemPropertiesin interfaceSettingsBuildingRequest- Returns:
- The system properties, never
null.
-
setSystemProperties
Description copied from interface:SettingsBuildingRequestSets the system properties to use for interpolation. The system properties are collected from the runtime environment likeSystem.getProperties()and environment variables.- Specified by:
setSystemPropertiesin interfaceSettingsBuildingRequest- Parameters:
systemProperties- The system properties, may benull.- Returns:
- This request, never
null.
-
getUserProperties
Description copied from interface:SettingsBuildingRequestGets the user properties to use for interpolation. The user properties have been configured directly by the user on his discretion, e.g. via the-Dkey=valueparameter on the command line.- Specified by:
getUserPropertiesin interfaceSettingsBuildingRequest- Returns:
- The user properties, never
null.
-
setUserProperties
Description copied from interface:SettingsBuildingRequestSets the user properties to use for interpolation. The user properties have been configured directly by the user on his discretion, e.g. via the-Dkey=valueparameter on the command line.- Specified by:
setUserPropertiesin interfaceSettingsBuildingRequest- Parameters:
userProperties- The user properties, may benull.- Returns:
- This request, never
null.
-