public final class BuildExecutionBuilder extends Object
| Constructor and Description |
|---|
BuildExecutionBuilder(BuildChain buildChain,
String buildTargetName) |
| Modifier and Type | Method and Description |
|---|---|
BuildResult |
execute()
Run the build.
|
String |
getBuildTargetName()
Get the name of this build target.
|
(package private) BuildChain |
getChain() |
(package private) Map<ItemId,ArrayList<BuildItem>> |
getInitialMulti() |
(package private) Map<ItemId,BuildItem> |
getInitialSingle() |
<T extends BuildItem> |
produce(Class<T> type,
T item)
Provide an initial item.
|
<T extends BuildItem> |
produce(T item)
Provide an initial item.
|
BuildExecutionBuilder(BuildChain buildChain, String buildTargetName)
public String getBuildTargetName()
null)public <T extends BuildItem> BuildExecutionBuilder produce(T item)
item - the item valueIllegalArgumentException - if this deployer chain was not declared to initially produce type,
or if the item does not allow multiplicity but this method is called more than one timepublic <T extends BuildItem> BuildExecutionBuilder produce(Class<T> type, T item)
type - the item type (must not be null)item - the item valueIllegalArgumentException - if this deployer chain was not declared to initially produce type,
or if type is null, or if the item does not allow multiplicity but this method is called
more than one timepublic BuildResult execute() throws BuildException
null)BuildException - if build failedBuildChain getChain()
Copyright © 2021 JBoss by Red Hat. All rights reserved.