Interface MojoMetadataProvider.Context.LocalState
-
- Enclosing interface:
- MojoMetadataProvider.Context
public static interface MojoMetadataProvider.Context.LocalStateConfigures local state. Local state files are neither inputs, nor outputs. A typical example would be temporary directories. They are deleted when the outputs of a goal execution are loaded from the cache.- Since:
- 1.21
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MojoMetadataProvider.Context.LocalStatefiles(java.lang.String propertyName)Marks the given property as local state.MojoMetadataProvider.Context.LocalStatefiles(java.lang.String propertyName, java.lang.Object value)Marks the given files as a local state property.
-
-
-
Method Detail
-
files
MojoMetadataProvider.Context.LocalState files(java.lang.String propertyName)
Marks the given property as local state.- Parameters:
propertyName- the name of the property to be marked as local state- See Also:
files(String, Object)
-
files
MojoMetadataProvider.Context.LocalState files(java.lang.String propertyName, java.lang.Object value)
Marks the given files as a local state property.- Parameters:
propertyName- the name of the property to be marked as local statevalue- can be anIterable, an array or a single object of typeString,Path,URIorFile. Each element can represent an absolute path or a relative path to a file or directory. If it is a relative path, it will be resolved using the current project's base directory.
-
-