public final class MappingUtils
extends java.lang.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 java.lang.String |
DEFAULT_FILE_NAME_MAPPING
Default file name mapping.
|
static java.lang.String |
DEFAULT_FILE_NAME_MAPPING_CLASSIFIER
Default file name mapping incl.
|
Modifier | Constructor and Description |
---|---|
private |
MappingUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
evaluateFileNameMapping(java.lang.String expression,
org.apache.maven.artifact.Artifact artifact)
Evaluates the specified expression for the given artifact.
|
public static final java.lang.String DEFAULT_FILE_NAME_MAPPING
public static final java.lang.String DEFAULT_FILE_NAME_MAPPING_CLASSIFIER
public static java.lang.String evaluateFileNameMapping(java.lang.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
- In case of an error.