Class AbstractNonMavenBuildArtifactEngineer
- All Implemented Interfaces:
IBuildArtifactEngineer
- Version:
- $Revision$ $Date$
- Author:
- Stepan Roh, Polarion Software
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.polarion.alm.builder.spi.IBuildArtifactEngineer
IBuildArtifactEngineer.IEngineeringContext
-
Field Summary
Fields inherited from interface com.polarion.alm.builder.spi.IBuildArtifactEngineer
ATTACHED_VALUE_LOCAL_POM
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Amend (fill in the gaps of) build artifact.createPOMFile
(IBuildArtifactEngineer.IEngineeringContext context, String buildDescriptorName, String calculationDescriptorName, File localDir) Create POM (Project Object Model from Maven 2) file (pom.xml) for given artifact.deriveMavenGoals
(IBuildArtifactEngineer.IEngineeringContext context, String buildName) Derive phases/goals to run during build described by build descriptor of given name.expandDerivedBuildDeploymentDefinition
(IBuildArtifactEngineer.IEngineeringContext context, IBuildDescriptor.IDerivedBuildDeploymentDefinition derivedDef) Will transformIBuildDescriptor.IDerivedBuildDeploymentDefinition
toIBuildDescriptor.ISimpleBuildDeploymentDefinition
(if possible).
-
Constructor Details
-
AbstractNonMavenBuildArtifactEngineer
public AbstractNonMavenBuildArtifactEngineer()
-
-
Method Details
-
amendBuildArtifact
public void amendBuildArtifact(IBuildArtifactEngineer.IEngineeringContext context) throws GenericBuilderException Description copied from interface:IBuildArtifactEngineer
Amend (fill in the gaps of) build artifact.Note that when
tag
is specified in prepared artifact all operations inISourceRepository
must be done with tagged locations.- Specified by:
amendBuildArtifact
in interfaceIBuildArtifactEngineer
- Parameters:
context
- engineering context- Throws:
GenericBuilderException
- if error happens
-
createPOMFile
public File createPOMFile(IBuildArtifactEngineer.IEngineeringContext context, String buildDescriptorName, String calculationDescriptorName, File localDir) throws GenericBuilderException Description copied from interface:IBuildArtifactEngineer
Create POM (Project Object Model from Maven 2) file (pom.xml) for given artifact.If given artifact already has POM (by nature, not that it seems to exists there), its location is returned and no changes are done.
Passing of build/calculation descriptor name allows to create POM based on build/calculation configuration (needed for some).
Local directory points to the directory corresponding to artifact's repository object's location.
Created POM must be constructed in such a way that if invoked it will auto-invoke POM's of contained artifacts (or it will do the same work as if invoked).
Will set build artifact's attached value
IBuildArtifactEngineer.ATTACHED_VALUE_LOCAL_POM
to returnedFile
.- Specified by:
createPOMFile
in interfaceIBuildArtifactEngineer
- Parameters:
context
- engineering contextbuildDescriptorName
- build descriptor name ornull
calculationDescriptorName
- calculation descriptor name ornull
localDir
- local directory- Returns:
- POM file location
- Throws:
GenericBuilderException
- if error happens
-
deriveMavenGoals
Description copied from interface:IBuildArtifactEngineer
Derive phases/goals to run during build described by build descriptor of given name.- Specified by:
deriveMavenGoals
in interfaceIBuildArtifactEngineer
- Parameters:
context
- engineering contextbuildName
- build descriptor name- Returns:
List
ofString
phase/goal names ornull
if not specified
-
expandDerivedBuildDeploymentDefinition
public Collection expandDerivedBuildDeploymentDefinition(IBuildArtifactEngineer.IEngineeringContext context, IBuildDescriptor.IDerivedBuildDeploymentDefinition derivedDef) Description copied from interface:IBuildArtifactEngineer
Will transformIBuildDescriptor.IDerivedBuildDeploymentDefinition
toIBuildDescriptor.ISimpleBuildDeploymentDefinition
(if possible).Unknown derived build deployment artifact name must be ignored.
- Specified by:
expandDerivedBuildDeploymentDefinition
in interfaceIBuildArtifactEngineer
- Parameters:
context
- engineering context- Returns:
Collection
ofIBuildDescriptor.ISimpleBuildDeploymentDefinition
s (notnull
)
-