Package io.helidon.build.devloop
Class Project
java.lang.Object
io.helidon.build.devloop.Project
A continuous build project. New instances must have been successfully built.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns the most recent modification time if any build file has an updated modification time.static Project.Builderbuilder()Returns a new builder.Returns the build files (e.g.Returns the most recent modification time if any build file has an updated modification time.Returns the build type.Returns the project classpath.Returns the compiler flags.Returns all components.Returns a list of all external dependencies.protected voidincrementalBuild(List<BuildRoot.Changes> changes, PrintStream stdOut, PrintStream stdErr) Perform an incremental build for the given changes.booleanReturns whether all binaries are newer than all sources and no sources have changed.Returns the main class name.name()Returns the project name.root()Returns the root directory.Returns a list of source changes since the last update, if any.sourceChangesSince(FileTime time) Checks whether any source file has a modified time more recent than the given time.voidupdate(boolean updateDependencies) Update the project time stamps.
-
Method Details
-
builder
Returns a new builder.- Returns:
- The builder.
-
name
Returns the project name.- Returns:
- The name.
-
buildType
Returns the build type.- Returns:
- The type.
-
root
Returns the root directory.- Returns:
- The root.
-
buildFiles
Returns the build files (e.g.pom.xml).- Returns:
- The files.
-
classpath
Returns the project classpath.- Returns:
- The classpath.
-
compilerFlags
Returns the compiler flags.- Returns:
- The flags.
-
dependencies
Returns a list of all external dependencies.- Returns:
- The paths.
-
components
Returns all components.- Returns:
- The components.
-
mainClassName
Returns the main class name.- Returns:
- The name.
-
buildFilesChangedTime
Returns the most recent modification time if any build file has an updated modification time.- Returns:
- The time, if changed.
-
sourceChanges
Returns a list of source changes since the last update, if any.- Returns:
- The changes.
-
sourceChangesSince
Checks whether any source file has a modified time more recent than the given time.- Parameters:
time- The time to check against. Ifnull, usesFileUtils.fromMillis(0).- Returns:
- The time, if changed.
-
binaryFilesChangedTime
Returns the most recent modification time if any build file has an updated modification time.- Returns:
- The time, if changed.
-
isBuildUpToDate
public boolean isBuildUpToDate()Returns whether all binaries are newer than all sources and no sources have changed.- Returns:
trueif up to date,falseif not.
-
update
public void update(boolean updateDependencies) Update the project time stamps.- Parameters:
updateDependencies-trueif dependencies should be updated.
-
incrementalBuild
protected void incrementalBuild(List<BuildRoot.Changes> changes, PrintStream stdOut, PrintStream stdErr) throws Exception Perform an incremental build for the given changes.- Parameters:
changes- The changes.stdOut- A printer for stdout.stdErr- A printer for stderr.- Throws:
Exception- on error.
-