Package org.apache.maven.model
Class ActivationFile
java.lang.Object
org.apache.maven.model.ActivationFile
- All Implemented Interfaces:
Serializable
,Cloneable
,InputLocationTracker
This is the file specification used to activate the profile. The
Variable interpolation for these file specifications is limited to
missing
value
is the location of a file that needs to exist, and if it
doesn't, the profile will be
activated. On the other hand, exists
will
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 user properties.- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The name of the file that must exist to activate the profile.private InputLocation
Field existsLocation.private InputLocation
Field location.private Map<Object,
InputLocation> Field locations.private String
The name of the file that must be missing to activate the profile.private InputLocation
Field missingLocation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Method clone.Get the name of the file that must exist to activate the profile.getLocation
(Object key) Gets the location of the specified field in the input source.Get the name of the file that must be missing to activate the profile.private InputLocation
getOtherLocation
(Object key) void
Set the name of the file that must exist to activate the profile.void
setLocation
(Object key, InputLocation location) Sets the location of the specified field.void
setMissing
(String missing) Set the name of the file that must be missing to activate the profile.void
setOtherLocation
(Object key, InputLocation location)
-
Field Details
-
missing
The name of the file that must be missing to activate the profile. -
exists
The name of the file that must exist to activate the profile. -
locations
Field locations. -
location
Field location. -
missingLocation
Field missingLocation. -
existsLocation
Field existsLocation.
-
-
Constructor Details
-
ActivationFile
public ActivationFile()
-
-
Method Details
-
clone
Method clone. -
getExists
Get the name of the file that must exist to activate the profile.- 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
-
getMissing
Get the name of the file that must be missing to activate the profile.- 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.
-
getOtherLocation
- Parameters:
key
- a key object.- Returns:
- InputLocation
-
setExists
Set the name of the file that must exist to activate the profile.- Parameters:
exists
- a exists object.
-
setMissing
Set the name of the file that must be missing to activate the profile.- Parameters:
missing
- a missing object.
-