maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject cvs commit: maven-components/maven-core/src/main/java/org/apache/maven/plugin PluginParameterExpressionEvaluator.java
Date Sun, 05 Dec 2004 22:06:35 GMT
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 );
       }
   }
  
  
  

Mime
View raw message