Package bm.target
Interface FileState
- All Superinterfaces:
StateProvider
- All Known Implementing Classes:
FileBooleanState,FileContentState
-
Method Summary
Modifier and TypeMethodDescriptionProvides known files.Provides known files below the target but as paths relative to the targetThe path of the target this objects represents.default FileTargetCreates aFileTargetfromthiswith no dependencies and no builder.default <T extends Target>
FileTargettoFileTarget(List<T> dependencies, ConsumeOrThrow<FileTarget> builder) Creates aFileTargetfromthiswith the given dependencies and builder.Methods inherited from interface bm.machine.StateProvider
addState
-
Method Details
-
getTargetPath
Path getTargetPath()The path of the target this objects represents.- Returns:
- path of the target
-
getManagedFiles
Provides known files.- Returns:
- the list of files in the directory managed by this target or the single file it represents
-
getManagedRelative
Provides known files below the target but as paths relative to the target- Returns:
- the list of files in the directory managed by this target or the single file it represents
-
toFileTarget
Creates aFileTargetfromthiswith no dependencies and no builder.- Returns:
- a new
FileTarget
-
toFileTarget
default <T extends Target> FileTarget toFileTarget(List<T> dependencies, ConsumeOrThrow<FileTarget> builder) Creates aFileTargetfromthiswith the given dependencies and builder.- Returns:
- a new
FileTarget
-