Package io.helidon.build.devloop
Class BuildRoot
java.lang.Object
io.helidon.build.devloop.ProjectDirectory
io.helidon.build.devloop.BuildRoot
A project directory that tracks file changes.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns the build type.changes()Tests for any changed files.Returns the build component containing this root.static BuildRootcreateBuildRoot(BuildRootType type, Path path) Returns a new project directory.booleanReturns the first file whose path matches the given filter.findFirstNamed(Predicate<String> filter) Returns the first file whose file name matches the given filter.inthashCode()iterator()list()Returns the list of files.stream()Returns the stream of files.toString()voidupdate()Updates the files list.Methods inherited from class io.helidon.build.devloop.ProjectDirectory
clean, createProjectDirectory, delete, directoryType, isEmpty, pathMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
createBuildRoot
Returns a new project directory.- Parameters:
type- The type.path- The directory path.- Returns:
- The build root.
-
component
Returns the build component containing this root.- Returns:
- The component.
-
buildType
Returns the build type.- Returns:
- The type.
-
list
Returns the list of files.- Returns:
- The list.
-
stream
Returns the stream of files.- Returns:
- The stream.
-
findFirst
Returns the first file whose path matches the given filter.- Parameters:
filter- The filter.- Returns:
- The build file.
- Throws:
NoSuchElementException- If not found.
-
findFirstNamed
Returns the first file whose file name matches the given filter.- Parameters:
filter- The filter.- Returns:
- The build file.
- Throws:
NoSuchElementException- If not found.
-
iterator
-
changes
Tests for any changed files.- Returns:
- The changes.
-
update
public void update()Updates the files list. -
toString
- Overrides:
toStringin classProjectDirectory
-
equals
- Overrides:
equalsin classProjectDirectory
-
hashCode
public int hashCode()- Overrides:
hashCodein classProjectDirectory
-