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.java 947587 2010-05-24 10:17:47Z dennisl $
- 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 org.codehaus.plexus.interpolation.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:
org.codehaus.plexus.interpolation.InterpolationException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.