You are viewing a plain text version of this content. The canonical link for it is here.
Posted to m2-dev@maven.apache.org by jv...@apache.org on 2004/12/05 23:06:35 UTC
cvs commit: maven-components/maven-core/src/main/java/org/apache/maven/plugin PluginParameterExpressionEvaluator.java
jvanzyl 2004/12/05 14:06:34
Modified: maven-core/src/main/java/org/apache/maven/plugin
PluginParameterExpressionEvaluator.java
Log:
o we're still using ognl-esque expressions but we don't need its syntax internally.
Revision Changes Path
1.2 +3 -8 maven-components/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java
Index: PluginParameterExpressionEvaluator.java
===================================================================
RCS file: /home/cvs/maven-components/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- PluginParameterExpressionEvaluator.java 5 Dec 2004 21:45:35 -0000 1.1
+++ PluginParameterExpressionEvaluator.java 5 Dec 2004 22:06:34 -0000 1.2
@@ -70,12 +70,12 @@
if ( pathSeparator > 0 )
{
- value = getValue( expression.substring( 9, pathSeparator ), context.getProject() )
+ value = getValue( expression.substring( 1, pathSeparator ), context.getProject() )
+ expression.substring( pathSeparator );
}
else
{
- value = getValue( expression.substring( 9 ), context.getProject() );
+ value = getValue( expression.substring( 1 ), context.getProject() );
}
}
catch ( Exception e )
@@ -131,11 +131,6 @@
private static Object getValue( String expression, MavenProject project )
throws Exception
{
-
- expression = "project." + expression;
-
- System.out.println( "expression = " + expression );
-
return ReflectionProjectValueExtractor.evaluate( expression, project );
}
}