public final 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
Default file name mapping.
|
static String |
DEFAULT_FILE_NAME_MAPPING_CLASSIFIER
Default file name mapping incl.
|
Modifier and Type | Method and Description |
---|---|
static String |
evaluateFileNameMapping(String expression,
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, 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.Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.