public class MappingUtils extends Object
Utilities used to evaluate an expression.
The expression might use any field of the Artifact
interface. Some
examples might be:
Although parts of this code comes from the Assembly Plugin, it cannot be shared with the Assembly Plugin. The reason for this is that the Assembly Plugin always uses a prefix for the expressions, whereas this code does not.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_FILE_NAME_MAPPING |
static String |
DEFAULT_FILE_NAME_MAPPING_CLASSIFIER |
Constructor and Description |
---|
MappingUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
evaluateFileNameMapping(String expression,
org.apache.maven.artifact.Artifact artifact)
Evaluates the specified expression for the given artifact.
|
public static final String DEFAULT_FILE_NAME_MAPPING
public static final String DEFAULT_FILE_NAME_MAPPING_CLASSIFIER
public static String evaluateFileNameMapping(String expression, org.apache.maven.artifact.Artifact artifact) throws org.codehaus.plexus.interpolation.InterpolationException
expression
- the expression to evaluateartifact
- the artifact to use as value object for tokensorg.codehaus.plexus.interpolation.InterpolationException
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.