Package org.apache.maven.model
Class ActivationFile
- java.lang.Object
-
- org.apache.maven.model.ActivationFile
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,InputLocationTracker
public class ActivationFile extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
This is the file specification used to activate the profile. Themissingvalue is the location of a file that needs to exist, and if it doesn't, the profile will be activated. On the other hand,existswill test for the existence of the file and if it is there, the profile will be activated.
Variable interpolation for these file specifications is limited to${basedir}, System properties and request properties.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringexistsThe name of the file that must exist to activate the profile.private InputLocationexistsLocationField existsLocation.private InputLocationlocationField location.private java.util.Map<java.lang.Object,InputLocation>locationsField locations.private java.lang.StringmissingThe name of the file that must be missing to activate the profile.private InputLocationmissingLocationField missingLocation.
-
Constructor Summary
Constructors Constructor Description ActivationFile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActivationFileclone()Method clone.java.lang.StringgetExists()Get the name of the file that must exist to activate the profile.InputLocationgetLocation(java.lang.Object key)Gets the location of the specified field in the input source.java.lang.StringgetMissing()Get the name of the file that must be missing to activate the profile.private InputLocationgetOtherLocation(java.lang.Object key)voidsetExists(java.lang.String exists)Set the name of the file that must exist to activate the profile.voidsetLocation(java.lang.Object key, InputLocation location)Sets the location of the specified field.voidsetMissing(java.lang.String missing)Set the name of the file that must be missing to activate the profile.voidsetOtherLocation(java.lang.Object key, InputLocation location)
-
-
-
Field Detail
-
missing
private java.lang.String missing
The name of the file that must be missing to activate the profile.
-
exists
private java.lang.String exists
The name of the file that must exist to activate the profile.
-
locations
private java.util.Map<java.lang.Object,InputLocation> locations
Field locations.
-
location
private InputLocation location
Field location.
-
missingLocation
private InputLocation missingLocation
Field missingLocation.
-
existsLocation
private InputLocation existsLocation
Field existsLocation.
-
-
Method Detail
-
clone
public ActivationFile clone()
Method clone.- Overrides:
clonein classjava.lang.Object- Returns:
- ActivationFile
-
getExists
public java.lang.String getExists()
Get the name of the file that must exist to activate the profile.- Returns:
- String
-
getLocation
public InputLocation getLocation(java.lang.Object key)
Description copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker- Parameters:
key-- Returns:
- InputLocation
-
getMissing
public java.lang.String getMissing()
Get the name of the file that must be missing to activate the profile.- Returns:
- String
-
setLocation
public void setLocation(java.lang.Object key, InputLocation location)Description copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
setLocationin interfaceInputLocationTracker- Parameters:
key-location-
-
setOtherLocation
public void setOtherLocation(java.lang.Object key, InputLocation location)- Parameters:
key-location-
-
getOtherLocation
private InputLocation getOtherLocation(java.lang.Object key)
- Parameters:
key-- Returns:
- InputLocation
-
setExists
public void setExists(java.lang.String exists)
Set the name of the file that must exist to activate the profile.- Parameters:
exists-
-
setMissing
public void setMissing(java.lang.String missing)
Set the name of the file that must be missing to activate the profile.- Parameters:
missing-
-
-