Hello,
A question: What is the result of an expression evalution when the
referenced property/getter/object does not exist?
I recently struggled with a Beanshell rule for the Maven Enforcer Plugin
when the project is run by the Maven Integration for Eclipse. For example,
the following (non-sense) Beanshell snippet
System.out.println(${missing.property});
true;
outputs
null
when run on the console (with Maven 2.0.8). Running the same POM inside
Eclipse (with org.maven.ide.eclipse_0.0.12.20071107-2300) yields
inline evaluation of: ``System.out.println(${missing.property}); true;'' :
Attempt to access property on undefined variable or class name
i.e. the Beanshell interpreter sees the literal expression instead of null.
Now, what is the right behavior or is this an intended change for Maven 2.1?
Thanks in advance,
Benjamin Bentmann
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]