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
-
Method Summary
Modifier and TypeMethodDescriptionGets the global settings file.Gets the global settings source.Gets the project settings file.Gets the project 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.setProjectSettingsFile
(File projectSettingsFile) Sets the project settings file.setProjectSettingsSource
(SettingsSource projectSettingsSource) Sets the project 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:SettingsBuildingRequest
Gets the global settings file.- Specified by:
getGlobalSettingsFile
in interfaceSettingsBuildingRequest
- Returns:
- The global settings file or
null
if none.
-
setGlobalSettingsFile
Description copied from interface:SettingsBuildingRequest
Sets 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:
setGlobalSettingsFile
in interfaceSettingsBuildingRequest
- Parameters:
globalSettingsFile
- The global settings file, may benull
to disable global settings.- Returns:
- This request, never
null
.
-
getGlobalSettingsSource
Description copied from interface:SettingsBuildingRequest
Gets the global settings source.- Specified by:
getGlobalSettingsSource
in interfaceSettingsBuildingRequest
- Returns:
- The global settings source or
null
if none.
-
setGlobalSettingsSource
Description copied from interface:SettingsBuildingRequest
Sets the global settings source. If both user settings and a global settings are given, the user settings take precedence.- Specified by:
setGlobalSettingsSource
in interfaceSettingsBuildingRequest
- Parameters:
globalSettingsSource
- The global settings source, may benull
to disable global settings.- Returns:
- This request, never
null
.
-
getProjectSettingsFile
Description copied from interface:SettingsBuildingRequest
Gets the project settings file.- Specified by:
getProjectSettingsFile
in interfaceSettingsBuildingRequest
- Returns:
- The project settings file or
null
if none.
-
setProjectSettingsFile
Description copied from interface:SettingsBuildingRequest
Sets the project settings file. A non-existent settings file is equivalent to empty settings.- Specified by:
setProjectSettingsFile
in interfaceSettingsBuildingRequest
- Parameters:
projectSettingsFile
- The project settings file, may benull
to disable project settings.- Returns:
- This request, never
null
.
-
getProjectSettingsSource
Description copied from interface:SettingsBuildingRequest
Gets the project settings source.- Specified by:
getProjectSettingsSource
in interfaceSettingsBuildingRequest
- Returns:
- The project settings source or
null
if none.
-
setProjectSettingsSource
public DefaultSettingsBuildingRequest setProjectSettingsSource(SettingsSource projectSettingsSource) Description copied from interface:SettingsBuildingRequest
Sets the project settings source.- Specified by:
setProjectSettingsSource
in interfaceSettingsBuildingRequest
- Parameters:
projectSettingsSource
- The project settings source, may benull
to disable global settings.- Returns:
- This request, never
null
.
-
getUserSettingsFile
Description copied from interface:SettingsBuildingRequest
Gets the user settings file.- Specified by:
getUserSettingsFile
in interfaceSettingsBuildingRequest
- Returns:
- The user settings file or
null
if none.
-
setUserSettingsFile
Description copied from interface:SettingsBuildingRequest
Sets 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:
setUserSettingsFile
in interfaceSettingsBuildingRequest
- Parameters:
userSettingsFile
- The user settings file, may benull
to disable user settings.- Returns:
- This request, never
null
.
-
getUserSettingsSource
Description copied from interface:SettingsBuildingRequest
Gets the user settings source.- Specified by:
getUserSettingsSource
in interfaceSettingsBuildingRequest
- Returns:
- The user settings source or
null
if none.
-
setUserSettingsSource
Description copied from interface:SettingsBuildingRequest
Sets the user settings source. If both user settings and a global settings are given, the user settings take precedence.- Specified by:
setUserSettingsSource
in interfaceSettingsBuildingRequest
- Parameters:
userSettingsSource
- The user settings source, may benull
to disable user settings.- Returns:
- This request, never
null
.
-
getSystemProperties
Description copied from interface:SettingsBuildingRequest
Gets the system properties to use for interpolation. The system properties are collected from the runtime environment likeSystem.getProperties()
and environment variables.- Specified by:
getSystemProperties
in interfaceSettingsBuildingRequest
- Returns:
- The system properties, never
null
.
-
setSystemProperties
Description copied from interface:SettingsBuildingRequest
Sets the system properties to use for interpolation. The system properties are collected from the runtime environment likeSystem.getProperties()
and environment variables.- Specified by:
setSystemProperties
in interfaceSettingsBuildingRequest
- Parameters:
systemProperties
- The system properties, may benull
.- Returns:
- This request, never
null
.
-
getUserProperties
Description copied from interface:SettingsBuildingRequest
Gets 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=value
parameter on the command line.- Specified by:
getUserProperties
in interfaceSettingsBuildingRequest
- Returns:
- The user properties, never
null
.
-
setUserProperties
Description copied from interface:SettingsBuildingRequest
Sets 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=value
parameter on the command line.- Specified by:
setUserProperties
in interfaceSettingsBuildingRequest
- Parameters:
userProperties
- The user properties, may benull
.- Returns:
- This request, never
null
.
-