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
Constructors -
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 aswindowsorunix.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.voidSet the architecture of the operating system to be used to activate the profile.voidSet the general family of the OS to be used to activate the profile, such aswindowsorunix.voidsetLocation(Object key, InputLocation location) Sets the location of the specified field.voidSet the name of the operating system to be used to activate the profile.voidsetOtherLocation(Object key, InputLocation location) voidsetVersion(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 aswindowsorunix.- Returns:
- String
-
getLocation
Description copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
getLocationin 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:InputLocationTrackerSets the location of the specified field.- Specified by:
setLocationin 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 aswindowsorunix.- 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.
-