org.apache.maven.project.artifact
Class VersionExpressionTransformation

java.lang.Object
  extended byorg.codehaus.plexus.logging.AbstractLogEnabled
      extended byorg.apache.maven.project.interpolation.AbstractStringBasedModelInterpolator
          extended byorg.apache.maven.project.interpolation.StringSearchModelInterpolator
              extended byorg.apache.maven.project.artifact.VersionExpressionTransformation
All Implemented Interfaces:
ArtifactTransformation, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable, org.codehaus.plexus.logging.LogEnabled, ModelInterpolator

public class VersionExpressionTransformation
extends StringSearchModelInterpolator
implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable, ArtifactTransformation


Field Summary
 
Fields inherited from interface org.apache.maven.artifact.transform.ArtifactTransformation
ROLE
 
Fields inherited from interface org.apache.maven.project.interpolation.ModelInterpolator
BUILD_TIMESTAMP_FORMAT_PROPERTY, DEFAULT_BUILD_TIMESTAMP_FORMAT, ROLE
 
Constructor Summary
VersionExpressionTransformation()
           
 
Method Summary
protected  void interpolateVersions(File pomFile, File outputFile, Model model, File projectDir, ProjectBuilderConfiguration config)
           
 void transformForDeployment(Artifact artifact, ArtifactRepository remoteRepository, ArtifactRepository localRepository)
           
 void transformForInstall(Artifact artifact, ArtifactRepository localRepository)
           
 void transformForResolve(Artifact artifact, List remoteRepositories, ArtifactRepository localRepository)
           
protected  File transformVersions(File pomFile, Artifact artifact, ArtifactRepository localRepository)
           
 
Methods inherited from class org.apache.maven.project.interpolation.StringSearchModelInterpolator
createInterpolator, interpolate, interpolateObject
 
Methods inherited from class org.apache.maven.project.interpolation.AbstractStringBasedModelInterpolator
createPostProcessors, createValueSources, getInterpolator, getRecursionInterceptor, initialize, interpolate, interpolate, interpolate, interpolateInternal, setRecursionInterceptor
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
initialize
 

Constructor Detail

VersionExpressionTransformation

public VersionExpressionTransformation()
Method Detail

transformForDeployment

public void transformForDeployment(Artifact artifact,
                                   ArtifactRepository remoteRepository,
                                   ArtifactRepository localRepository)
                            throws ArtifactDeploymentException
Specified by:
transformForDeployment in interface ArtifactTransformation
Throws:
ArtifactDeploymentException

transformForInstall

public void transformForInstall(Artifact artifact,
                                ArtifactRepository localRepository)
                         throws ArtifactInstallationException
Specified by:
transformForInstall in interface ArtifactTransformation
Throws:
ArtifactInstallationException

transformForResolve

public void transformForResolve(Artifact artifact,
                                List remoteRepositories,
                                ArtifactRepository localRepository)
                         throws ArtifactResolutionException,
                                ArtifactNotFoundException
Specified by:
transformForResolve in interface ArtifactTransformation
Throws:
ArtifactResolutionException
ArtifactNotFoundException

transformVersions

protected File transformVersions(File pomFile,
                                 Artifact artifact,
                                 ArtifactRepository localRepository)
                          throws IOException,
                                 ModelInterpolationException
Throws:
IOException
ModelInterpolationException

interpolateVersions

protected void interpolateVersions(File pomFile,
                                   File outputFile,
                                   Model model,
                                   File projectDir,
                                   ProjectBuilderConfiguration config)
                            throws ModelInterpolationException
Throws:
ModelInterpolationException


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.