Class DefaultSettingsBuildingRequest
java.lang.Object
org.apache.maven.settings.building.DefaultSettingsBuildingRequest
- All Implemented Interfaces:
SettingsBuildingRequest
@Deprecated(since="4.0.0")
public class DefaultSettingsBuildingRequest
extends Object
implements SettingsBuildingRequest
Deprecated.
Collects settings that control building of effective settings.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the global settings file.Deprecated.Gets the global settings source.Deprecated.Gets the project settings file.Deprecated.Gets the project settings source.Deprecated.Gets the system properties to use for interpolation.Deprecated.Gets the user properties to use for interpolation.Deprecated.Gets the user settings file.Deprecated.Gets the user settings source.setGlobalSettingsFile
(File globalSettingsFile) Deprecated.Sets the global settings file.setGlobalSettingsSource
(SettingsSource globalSettingsSource) Deprecated.Sets the global settings source.setProjectSettingsFile
(File projectSettingsFile) Deprecated.Sets the project settings file.setProjectSettingsSource
(SettingsSource projectSettingsSource) Deprecated.Sets the project settings source.setSystemProperties
(Properties systemProperties) Deprecated.Sets the system properties to use for interpolation.setUserProperties
(Properties userProperties) Deprecated.Sets the user properties to use for interpolation.setUserSettingsFile
(File userSettingsFile) Deprecated.Sets the user settings file.setUserSettingsSource
(SettingsSource userSettingsSource) Deprecated.Sets the user settings source.
-
Constructor Details
-
DefaultSettingsBuildingRequest
public DefaultSettingsBuildingRequest()Deprecated.
-
-
Method Details
-
getGlobalSettingsFile
Deprecated.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
Deprecated.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
Deprecated.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
Deprecated.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
Deprecated.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
Deprecated.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
Deprecated.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) Deprecated.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
Deprecated.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
Deprecated.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
Deprecated.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
Deprecated.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
Deprecated.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
Deprecated.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
Deprecated.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
Deprecated.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
.
-
SettingsBuilder
instead