Interface MojoMetadataProvider.Context.LocalState

  • Enclosing interface:
    MojoMetadataProvider.Context

    public static interface MojoMetadataProvider.Context.LocalState
    Configures 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.15
    • Method Detail

      • 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 state
        value - can be an Iterable, an array or a single object of type String, Path, URI or File. 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.
        Since:
        1.15