org.alfresco.maven.plugin.amp.util
Class MappingUtils
java.lang.Object
org.alfresco.maven.plugin.amp.util.MappingUtils
public class MappingUtils
- extends Object
Utilities used to evaluate expression.
TODO: this comes from the assembly plugin; refactor when it's shared.
The expression might use any fied of the Artifact
interface. Some
examples might be:
- ${artifactId}-${version}.${extension}
- ${artifactId}.${extension}
- Author:
- Stephane Nicoll
Method Summary |
static String |
evaluateFileNameMapping(String expression,
org.apache.maven.artifact.Artifact artifact)
Evaluates the specified expression for the given artifact. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MappingUtils
public MappingUtils()
evaluateFileNameMapping
public static String evaluateFileNameMapping(String expression,
org.apache.maven.artifact.Artifact artifact)
- Evaluates the specified expression for the given artifact.
- Parameters:
expression
- the expression to evaluateartifact
- the artifact to use as value object for tokens
- Returns:
- expression the evaluated expression
Copyright © 2009 Alfresco. All Rights Reserved.