public class PluginParameterExpressionEvaluator extends Object implements TypeAwareExpressionEvaluator
${
and }
is evaluated.
Recognized values are:expression | evaluation result | |
---|---|---|
session | the actual MavenSession | |
session.* | (since Maven 3) | |
localRepository | MavenSession.getLocalRepository() | |
reactorProjects | MavenSession.getProjects() | |
repositorySystemSession | (since Maven 3) | MavenSession.getRepositorySession() |
project | MavenSession.getCurrentProject() | |
project.* | ||
pom.* | (since Maven 3) | same as project.* |
executedProject | MavenProject.getExecutionProject() | |
settings | MavenSession.getSettings() | |
settings.* | ||
basedir | MavenSession.getExecutionRootDirectory() or System.getProperty( "user.dir" ) if null | |
mojoExecution | the actual MojoExecution | |
mojo | (since Maven 3) | same as mojoExecution |
mojo.* | (since Maven 3) | |
plugin | (since Maven 3) | MojoExecution.getMojoDescriptor() .getPluginDescriptor() |
plugin.* | ||
* | system properties | |
* | project properties |
reports
was supported in Maven 2.x but was removed in Maven 3MavenSession
,
MojoExecution
Constructor and Description |
---|
PluginParameterExpressionEvaluator(MavenSession session) |
PluginParameterExpressionEvaluator(MavenSession session,
MojoExecution mojoExecution) |
PluginParameterExpressionEvaluator(MavenSession session,
MojoExecution mojoExecution,
PathTranslator pathTranslator,
Logger logger,
MavenProject project,
Properties properties)
Deprecated.
|
@Deprecated public PluginParameterExpressionEvaluator(MavenSession session, MojoExecution mojoExecution, PathTranslator pathTranslator, Logger logger, MavenProject project, Properties properties)
public PluginParameterExpressionEvaluator(MavenSession session)
public PluginParameterExpressionEvaluator(MavenSession session, MojoExecution mojoExecution)
public Object evaluate(String expr) throws ExpressionEvaluationException
evaluate
in interface ExpressionEvaluator
ExpressionEvaluationException
public Object evaluate(String expr, Class<?> type) throws ExpressionEvaluationException
evaluate
in interface TypeAwareExpressionEvaluator
ExpressionEvaluationException
public File alignToBaseDirectory(File file)
alignToBaseDirectory
in interface ExpressionEvaluator
Copyright © 2001–2014 The Apache Software Foundation. All rights reserved.