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 SummaryConstructors
- 
Method SummaryModifier 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- 
ActivationOSpublic ActivationOS()
 
- 
- 
Method Details- 
cloneMethod clone.
- 
getArchGet the architecture of the operating system to be used to activate the profile.- Returns:
- String
 
- 
getFamilyGet the general family of the OS to be used to activate the profile, such aswindowsorunix.- Returns:
- String
 
- 
getLocationDescription copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
- Parameters:
- key- a key object.
- Returns:
- InputLocation
 
- 
getNameGet 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
 
- 
setLocationDescription copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
- setLocationin interface- InputLocationTracker
- Parameters:
- key- a key object.
- location- a location object.
 
- 
setOtherLocation- Parameters:
- key- a key object.
- location- a location object.
 
- 
getVersionGet the version of the operating system to be used to activate the profile.- Returns:
- String
 
- 
setArchSet the architecture of the operating system to be used to activate the profile.- Parameters:
- arch- a arch object.
 
- 
setFamilySet the general family of the OS to be used to activate the profile, such aswindowsorunix.- Parameters:
- family- a family object.
 
- 
setNameSet 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.
 
- 
setVersionSet the version of the operating system to be used to activate the profile.- Parameters:
- version- a version object.
 
 
-