From 879557946949faf5a4b282e98cbd7c6a97b24493 Mon Sep 17 00:00:00 2001 From: John Dennis Casey Date: Tue, 14 Aug 2007 15:33:33 +0000 Subject: [PATCH] [MNG-3062] Provide access to MojoExecution instance from plugin parameter expression ${mojoExecution}. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@565811 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/plugin/PluginParameterExpressionEvaluator.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java b/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java index d614d9901c..16a7817266 100644 --- a/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java +++ b/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java @@ -245,6 +245,10 @@ public class PluginParameterExpressionEvaluator { value = lifecycleExecutionContext.getReports(); } + else if ("mojoExecution".equals(expression)) + { + value = mojoExecution; + } else if ( "project".equals( expression ) ) { value = project;