Package io.quarkus.builder
Class BuildExecutionBuilder
java.lang.Object
io.quarkus.builder.BuildExecutionBuilder
A builder for a deployer execution.
- Author:
- David M. Lloyd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute()Run the build.Get the name of this build target.(package private) BuildChaingetChain()<T extends BuildItem>
BuildExecutionBuilderProvide an initial item.<T extends BuildItem>
BuildExecutionBuilderproduce(T item) Provide an initial item.
-
Constructor Details
-
BuildExecutionBuilder
BuildExecutionBuilder(BuildChain buildChain, String buildTargetName)
-
-
Method Details
-
getBuildTargetName
Get the name of this build target. The resultant string is useful for diagnostic messages and does not have any other significance.- Returns:
- the name of this build target (not
null)
-
produce
Provide an initial item.- Parameters:
item- the item value- Returns:
- this builder
- Throws:
IllegalArgumentException- if this deployer chain was not declared to initially producetype, or if the item does not allow multiplicity but this method is called more than one time
-
produce
Provide an initial item.- Parameters:
type- the item type (must not benull)item- the item value- Returns:
- this builder
- Throws:
IllegalArgumentException- if this deployer chain was not declared to initially producetype, or iftypeisnull, or if the item does not allow multiplicity but this method is called more than one time
-
execute
Run the build. The chain may run in one or many threads.- Returns:
- the build result (not
null) - Throws:
BuildException- if build failed
-
getInitialSingle
-
getInitialMulti
-
getChain
BuildChain getChain()
-