org.alfresco.maven.plugin.amp.util
Class MappingUtils

java.lang.Object
  extended by 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:

Author:
Stephane Nicoll

Constructor Summary
MappingUtils()
           
 
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
 

Constructor Detail

MappingUtils

public MappingUtils()
Method Detail

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 evaluate
artifact - the artifact to use as value object for tokens
Returns:
expression the evaluated expression


Copyright © 2009 Alfresco. All Rights Reserved.