Package org.apache.maven.model
Class ActivationOS
java.lang.Object
org.apache.maven.model.ActivationOS
- All Implemented Interfaces:
Serializable
This is an activator which will detect an operating system's
attributes in order
to activate its profile.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The architecture of the operating system to be used to activate the profile.private String
The general family of the OS to be used to activate the profile, such aswindows
orunix
.private String
The name of the operating system to be used to activate the profile.private String
The version of the operating system to be used to activate the profile. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArch()
Get the architecture of the operating system to be used to activate the profile.Get the general family of the OS to be used to activate the profile, such aswindows
orunix
.getName()
Get the name of the operating system to be used to activate the profile.Get the version of the operating system to be used to activate the profile.void
Set the architecture of the operating system to be used to activate the profile.void
Set the general family of the OS to be used to activate the profile, such aswindows
orunix
.void
Set the name of the operating system to be used to activate the profile.void
setVersion
(String version) Set the version of the operating system to be used to activate the profile.
-
Field Details
-
name
The name of the operating system to be used to activate the profile. This must be an exact match of the${os.name}
Java property, such asWindows XP
. -
family
The general family of the OS to be used to activate the profile, such aswindows
orunix
. -
arch
The architecture of the operating system to be used to activate the profile. -
version
The version of the operating system to be used to activate the profile.
-
-
Constructor Details
-
ActivationOS
public ActivationOS()
-
-
Method Details
-
getArch
Get the architecture of the operating system to be used to activate the profile.- Returns:
- String
-
getFamily
Get the general family of the OS to be used to activate the profile, such aswindows
orunix
.- Returns:
- String
-
getName
Get the name of the operating system to be used to activate the profile. This must be an exact match of the${os.name}
Java property, such asWindows XP
.- Returns:
- String
-
getVersion
Get the version of the operating system to be used to activate the profile.- Returns:
- String
-
setArch
Set the architecture of the operating system to be used to activate the profile.- Parameters:
arch
-
-
setFamily
Set the general family of the OS to be used to activate the profile, such aswindows
orunix
.- Parameters:
family
-
-
setName
Set the name of the operating system to be used to activate the profile. This must be an exact match of the${os.name}
Java property, such asWindows XP
.- Parameters:
name
-
-
setVersion
Set the version of the operating system to be used to activate the profile.- Parameters:
version
-
-