Package io.quarkus.builder
Class BuildExecutionBuilder
- java.lang.Object
-
- io.quarkus.builder.BuildExecutionBuilder
-
public final class BuildExecutionBuilder extends Object
A builder for a deployer execution.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description BuildExecutionBuilder(BuildChain buildChain, String buildTargetName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuildResultexecute()Run the build.StringgetBuildTargetName()Get the name of this build target.(package private) BuildChaingetChain()(package private) Map<ItemId,ArrayList<BuildItem>>getInitialMulti()(package private) Map<ItemId,BuildItem>getInitialSingle()<T extends BuildItem>
BuildExecutionBuilderproduce(Class<T> type, T item)Provide an initial item.<T extends BuildItem>
BuildExecutionBuilderproduce(T item)Provide an initial item.
-
-
-
Constructor Detail
-
BuildExecutionBuilder
BuildExecutionBuilder(BuildChain buildChain, String buildTargetName)
-
-
Method Detail
-
getBuildTargetName
public String 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
public <T extends BuildItem> BuildExecutionBuilder produce(T item)
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
public <T extends BuildItem> BuildExecutionBuilder produce(Class<T> type, T item)
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
public BuildResult execute() throws BuildException
Run the build. The chain may run in one or many threads.- Returns:
- the build result (not
null) - Throws:
BuildException- if build failed
-
getChain
BuildChain getChain()
-
-