org.apache.maven.plugin.war.util
Class MappingUtils

java.lang.Object
  extended by org.apache.maven.plugin.war.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 field of the Artifact interface. Some examples might be:

Version:
$Id: MappingUtils.html 868453 2013-07-05 11:25:41Z olamy $
Author:
Stephane Nicoll

Constructor Summary
MappingUtils()
           
 
Method Summary
static String evaluateFileNameMapping(String expression, 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,
                                             Artifact artifact)
                                      throws InterpolationException
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
Throws:
InterpolationException


Copyright © 2002–2013 The Apache Software Foundation. All rights reserved.