Possible error in PluginParameterExpressionEvaluator
----------------------------------------------------

         Key: MNG-567
         URL: http://jira.codehaus.org/browse/MNG-567
     Project: Maven 2
        Type: Bug
  Components: maven-core  
 Reporter: Kenney Westerhof


        else if ( expression.startsWith( "project" ) )
        {
            try
            {
         
                int pathSeparator = expression.indexOf( "/" );

                if ( pathSeparator > 0 )
                {
                    String pathExpression = expression.substring( 1, 
pathSeparator );

seems wrong to me: say expression = "project.FOO/BAR";

then pathExpression will be "roject.FOO".

Also, there is a lot of need for the ExpressionEvaluator functionality in 
plugins (to access the
project.* variables at runtime, not at configuration time). Any chance this 
evaluator can be made into
a component? (the problem is that the constructor takes arguments that are also 
not available
in a a plugin.)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to