maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdca...@apache.org
Subject svn commit: r565812 - /maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java
Date Tue, 14 Aug 2007 15:33:45 GMT
Author: jdcasey
Date: Tue Aug 14 08:33:44 2007
New Revision: 565812

URL: http://svn.apache.org/viewvc?view=rev&rev=565812
Log:
[MNG-3062] Provide access to MojoExecution instance from plugin parameter expression ${mojoExecution}.

Modified:
    maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java

Modified: maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java
URL: http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java?view=diff&rev=565812&r1=565811&r2=565812
==============================================================================
--- maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java
(original)
+++ maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java
Tue Aug 14 08:33:44 2007
@@ -185,6 +185,10 @@
         {
             value = mojoExecution.getReports();
         }
+        else if ("mojoExecution".equals(expression)) 
+        {
+        	value = mojoExecution;
+        }
         else if ( "project".equals( expression ) )
         {
             value = project;



Mime
View raw message