Package org.apache.maven.profiles
Class ActivationOS
java.lang.Object
org.apache.maven.profiles.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:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetArch()
Get the architecture of the OS to be used to activate a profile.Get the general family of the OS to be used to activate a profile (e.g.getName()
Get the name of the OS to be used to activate a profile.Get the version of the OS to be used to activate a profile.void
Set the architecture of the OS to be used to activate a profile.void
Set the general family of the OS to be used to activate a profile (e.g.void
Set the name of the OS to be used to activate a profile.void
setVersion
(String version) Set the version of the OS to be used to activate a profile.
-
Constructor Details
-
ActivationOS
public ActivationOS()
-
-
Method Details
-
getArch
Get the architecture of the OS to be used to activate a profile.- Returns:
- String
-
getFamily
Get the general family of the OS to be used to activate a profile (e.g. 'windows').- Returns:
- String
-
getName
Get the name of the OS to be used to activate a profile.- Returns:
- String
-
getVersion
Get the version of the OS to be used to activate a profile.- Returns:
- String
-
setArch
Set the architecture of the OS to be used to activate a profile.- Parameters:
arch
- a arch object.
-
setFamily
Set the general family of the OS to be used to activate a profile (e.g. 'windows').- Parameters:
family
- a family object.
-
setName
Set the name of the OS to be used to activate a profile.- Parameters:
name
- a name object.
-
setVersion
Set the version of the OS to be used to activate a profile.- Parameters:
version
- a version object.
-