Package org.apache.maven.model
Class ActivationOS
java.lang.Object
org.apache.maven.model.ActivationOS
- All Implemented Interfaces:
Serializable
,Cloneable
,InputLocationTracker
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 TypeMethodDescriptionclone()
Method clone.getArch()
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
.getLocation
(Object key) Gets the location of the specified field in the input source.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
setLocation
(Object key, InputLocation location) Sets the location of the specified field.void
Set the name of the operating system to be used to activate the profile.void
setOtherLocation
(Object key, InputLocation location) void
setVersion
(String version) Set the version of the operating system to be used to activate the profile.
-
Constructor Details
-
ActivationOS
public ActivationOS()
-
-
Method Details
-
clone
Method clone. -
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
-
getLocation
Description copied from interface:InputLocationTracker
Gets the location of the specified field in the input source.- Specified by:
getLocation
in interfaceInputLocationTracker
- Parameters:
key
- a key object.- Returns:
- InputLocation
-
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
-
setLocation
Description copied from interface:InputLocationTracker
Sets the location of the specified field.- Specified by:
setLocation
in interfaceInputLocationTracker
- Parameters:
key
- a key object.location
- a location object.
-
setOtherLocation
- Parameters:
key
- a key object.location
- a location object.
-
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
- a arch object.
-
setFamily
Set the general family of the OS to be used to activate the profile, such aswindows
orunix
.- Parameters:
family
- a family object.
-
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
- a name object.
-
setVersion
Set the version of the operating system to be used to activate the profile.- Parameters:
version
- a version object.
-