Package io.helidon.build.devloop
Class BuildFile
java.lang.Object
io.helidon.build.devloop.BuildFile
- All Implemented Interfaces:
FileChangeAware
A project build file that can detect modification.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the most recent change time, if any.changedTimeIfNewerThan(FileTime baseTime) Tests whether or not this file has a modified time that is more recent than the base time.changedTimeIfOlderThan(FileTime baseTime) Tests whether or not this file has a modified time that is more recent than the base time.static BuildFilecreateBuildFile(ProjectDirectory parent, Path path) Returns a new build file.booleaninthashCode()Returns the last modified time.parent()Returns the parent directory.path()Returns the path.toString()voidupdate()Updates the last modified time.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.build.devloop.FileChangeAware
hasChanged
-
Method Details
-
createBuildFile
Returns a new build file.- Parameters:
parent- The parent.path- The file path.- Returns:
- The file.
-
parent
Returns the parent directory.- Returns:
- The parent.
-
path
Returns the path.- Returns:
- The path.
-
changedTime
Description copied from interface:FileChangeAwareReturns the most recent change time, if any.- Specified by:
changedTimein interfaceFileChangeAware- Returns:
- The time if changed.
-
changedTimeIfNewerThan
Tests whether or not this file has a modified time that is more recent than the base time.- Parameters:
baseTime- The base time. May benull.- Returns:
trueif base time isnullor change time is newer.
-
changedTimeIfOlderThan
Tests whether or not this file has a modified time that is more recent than the base time.- Parameters:
baseTime- The base time. May benull.- Returns:
trueif base time isnullor change time is older.
-
lastModifiedTime
Returns the last modified time.- Returns:
- The last modified time.
-
equals
-
update
public void update()Updates the last modified time. -
hashCode
public int hashCode() -
toString
-