Package org.apache.maven.api.settings
Class ActivationFile
java.lang.Object
org.apache.maven.api.settings.ActivationFile
- All Implemented Interfaces:
Serializable
@Experimental
@Generated
@ThreadSafe
@Immutable
public class ActivationFile
extends Object
implements Serializable
This is the file specification used to activate a profile. The missing value will be a the location
of a file that needs to exist, and if it doesn't the profile must run. On the other hand exists will test
for the existence of the file and if it is there will run the profile.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class used to create ActivationFile instances. -
Method Summary
Modifier and TypeMethodDescriptionThe name of the file that should exist to activate a profile.The name of the file that should be missing to activate a profile.static ActivationFile.Builder
Creates a newActivationFile
builder instance.static ActivationFile.Builder
newBuilder
(boolean withDefaults) Creates a newActivationFile
builder instance using default values or not.static ActivationFile.Builder
newBuilder
(ActivationFile from) Creates a newActivationFile
builder instance using the specified object as a basis.static ActivationFile.Builder
newBuilder
(ActivationFile from, boolean forceCopy) Creates a newActivationFile
builder instance using the specified object as a basis.static ActivationFile
Creates a newActivationFile
instance.static ActivationFile
newInstance
(boolean withDefaults) Creates a newActivationFile
instance using default values or not.with()
Creates a new builder with this object as the basis.withExists
(String exists) Creates a newActivationFile
instance using the specified exists.withMissing
(String missing) Creates a newActivationFile
instance using the specified missing.
-
Method Details
-
getMissing
The name of the file that should be missing to activate a profile.- Returns:
- a
String
-
getExists
The name of the file that should exist to activate a profile.- Returns:
- a
String
-
with
Creates a new builder with this object as the basis.- Returns:
- a
Builder
-
withMissing
Creates a newActivationFile
instance using the specified missing.- Parameters:
missing
- the newString
to use- Returns:
- a
ActivationFile
with the specified missing
-
withExists
Creates a newActivationFile
instance using the specified exists.- Parameters:
exists
- the newString
to use- Returns:
- a
ActivationFile
with the specified exists
-
newInstance
Creates a newActivationFile
instance. Equivalent tonewInstance( true )
.- Returns:
- a new
ActivationFile
- See Also:
-
newInstance
Creates a newActivationFile
instance using default values or not. Equivalent tonewBuilder( withDefaults ).build()
.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
ActivationFile
-
newBuilder
Creates a newActivationFile
builder instance. Equivalent tonewBuilder( true )
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newActivationFile
builder instance using default values or not.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newActivationFile
builder instance using the specified object as a basis. Equivalent tonewBuilder( from, false )
.- Parameters:
from
- theActivationFile
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newActivationFile
builder instance using the specified object as a basis.- Parameters:
from
- theActivationFile
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-