Thanks for the reply, just for reference, I was looking right now at 3
different solutions for the same problem:

1. The enforcer plugin:
EnforcerRuleHelper ->
http://svn.apache.org/viewvc/maven/enforcer/tags/enforcer-1.0/enforcer-api/src/main/java/org/apache/maven/enforcer/rule/api/EnforcerRuleHelper.java?view=markup
DefaultEnforcerRuleHelper ->
http://svn.apache.org/viewvc/maven/enforcer/tags/enforcer-1.0/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/DefaultEnforcementRuleHelper.java?view=markup

2. The help plugin:
http://maven.apache.org/plugins/maven-help-plugin/xref/org/apache/maven/plugins/help/EvaluateMojo.html

3. The resources plugin - haven't seen it yet, I presume it's the same
thing.

Anyway, it's usually something big & convoluted, since for evaluation
there's an ExpressionEvaluator which needs:
- a different type of logger from Plexus (the Maven 2 logger does not depend
on the Plexus logger, WTF?)
- the Maven session
- a path translator (?)
- some other stuff

Anyway, it's doable, but not nice by any means :)
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Evaluate-expressions-in-a-plugin-tp3276728p3276842.html
Sent from the Maven Developers mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to