Package com.polarion.alm.builder.spi
Interface IPreparedBuildArtifact
- All Superinterfaces:
IBuildArtifactRecognizer.IRecognizedBuildArtifact
Allows
IBuildArtifactEngineer.amendBuildArtifact(IEngineeringContext)
to populate build artifact with some values.- Version:
- $Revision$ $Date$
- Author:
- Stepan Roh, Polarion Software
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd aggregation resource definition.voidaddBuildDependency(IBuildArtifactSelector selector) Add build dependency.voidaddContainedArtifact(IBuildArtifactSelector selector) Add contained artifact.voidaddResource(ILocalDeploymentDefinition resource) Add resource definition.voidsetArtifactId(String artifactId) Set artifact id.voidsetDescription(String description) Set description.voidsetGroupId(String groupId) Set group id.voidSet label.voidsetTypeSpecificValue(String key, String value) Set type specific data.Methods inherited from interface com.polarion.alm.builder.spi.IBuildArtifactRecognizer.IRecognizedBuildArtifact
getAggregationResources, getBaseLocation, getConfiguration, getRepositoryTag, getResources, getType
-
Method Details
-
setGroupId
Set group id.- Parameters:
groupId- group id- Throws:
IllegalArgumentException- if groupId isnull- See Also:
-
setArtifactId
Set artifact id.- Parameters:
artifactId- group id- Throws:
IllegalArgumentException- if artifactId isnull- See Also:
-
setLabel
Set label.- Parameters:
label- label- Throws:
IllegalArgumentException- if label isnull- See Also:
-
setDescription
Set description.- Parameters:
description- description (may benull)- See Also:
-
addContainedArtifact
Add contained artifact.All selector's fields are treated literally (no pattern matching).
Selector's
IBuildArtifactSelector.getRepositoryTag()is ignored and this artifact's repository tag is used.Artifacts are assumed to be in the same
IGroupEntityas this artifact is (no actual checking is done).- Parameters:
selector- artifact selector- Throws:
IllegalArgumentException- if selector isnull- See Also:
-
addBuildDependency
Add build dependency.All selector's fields are treated literally (no pattern matching).
- Parameters:
selector- artifact selector- Throws:
IllegalArgumentException- if selector isnull- See Also:
-
addResource
Add resource definition.Note that if resources were already specified by user, then this call is ignored.
- Parameters:
resource- resource definition- Throws:
IllegalArgumentException- if resource isnull- See Also:
-
addAggregationResource
Add aggregation resource definition.Note that if aggregation resources were already specified by user, then this call is ignored.
- Parameters:
resource- resource definition- Throws:
IllegalArgumentException- if resource isnull- See Also:
-
setTypeSpecificValue
Set type specific data.- Parameters:
key- data kayvalue- data value (can benull)- Throws:
IllegalArgumentException- if key isnull
-