Package io.helidon.build.dev
Interface BuildStep
-
- All Superinterfaces:
Predicate<BuildComponent>
- All Known Implementing Classes:
MavenGoalBuildStep
public interface BuildStep extends Predicate<BuildComponent>
A project build step.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidincrementalBuild(BuildRoot.Changes changes, Consumer<String> stdOut, Consumer<String> stdErr)Execute the build step for the given changed files only.BuildRootTypeinputType()Returns the input type to which this step will apply.default Stringname()Returns the name of this build step.BuildRootTypeoutputType()Returns the output type that this step will produce.default booleantest(BuildComponent component)
-
-
-
Method Detail
-
name
default String name()
Returns the name of this build step.- Returns:
- the name.
-
inputType
BuildRootType inputType()
Returns the input type to which this step will apply.- Returns:
- The type.
-
outputType
BuildRootType outputType()
Returns the output type that this step will produce.- Returns:
- The type.
-
test
default boolean test(BuildComponent component)
- Specified by:
testin interfacePredicate<BuildComponent>
-
incrementalBuild
void incrementalBuild(BuildRoot.Changes changes, Consumer<String> stdOut, Consumer<String> stdErr) throws Exception
Execute the build step for the given changed files only. Any component that does not match this predicate is ignored.- Parameters:
changes- The changes.stdOut- A consumer for stdout.stdErr- A consumer for stderr.- Throws:
Exception- on error.
-
-