org.apache.maven.plugin.war.util
Class MappingUtils
java.lang.Object
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:
- @{artifactId}@-@{version}@@{dashClassifier?}@.@{extension}@
- @{artifactId}@-@{version}@.@{extension}@
- @{artifactId}@.@{extension}@
- Version:
- $Id: MappingUtils.html 868453 2013-07-05 11:25:41Z olamy $
- Author:
- Stephane Nicoll
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,
Artifact artifact)
throws InterpolationException
- 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
- Throws:
InterpolationException
Copyright © 2002–2013 The Apache Software Foundation. All rights reserved.