Package io.helidon.build.devloop
Class BuildComponent
java.lang.Object
io.helidon.build.devloop.BuildComponent
A build source and output directory.
-
Method Summary
Modifier and TypeMethodDescriptionstatic BuildComponentcreateBuildComponent(BuildRoot sourceRoot, BuildRoot outputRoot, BuildStep... buildSteps) Returns a new build component.static BuildComponentcreateBuildComponent(BuildRoot sourceRoot, BuildRoot outputRoot, List<BuildStep> buildSteps) Returns a new build component.voidincrementalBuild(BuildRoot.Changes changes, PrintStream stdOut, PrintStream stdErr) Execute the build step for the given changed files only.Returns the output root.project()Returns the project containing this component..Returns the source root.toString()voidupdate()Updates the components.
-
Method Details
-
createBuildComponent
public static BuildComponent createBuildComponent(BuildRoot sourceRoot, BuildRoot outputRoot, BuildStep... buildSteps) Returns a new build component.- Parameters:
sourceRoot- The source root.outputRoot- The output root.buildSteps- The build steps.- Returns:
- The build component.
-
createBuildComponent
public static BuildComponent createBuildComponent(BuildRoot sourceRoot, BuildRoot outputRoot, List<BuildStep> buildSteps) Returns a new build component.- Parameters:
sourceRoot- The source root.outputRoot- The output root.buildSteps- The build steps.- Returns:
- The build component.
-
project
Returns the project containing this component..- Returns:
- The project.
-
sourceRoot
Returns the source root.- Returns:
- The root.
-
outputRoot
Returns the output root.- Returns:
- The root.
-
incrementalBuild
public void incrementalBuild(BuildRoot.Changes changes, PrintStream stdOut, PrintStream stdErr) throws Exception Execute the build step for the given changed files only.- Parameters:
changes- The changes.stdOut- A consumer for stdout.stdErr- A consumer for stderr.- Throws:
Exception- on error.
-
update
public void update()Updates the components. -
toString
-