Look at the evaluate method here: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/mai n/java/org/apache/maven/plugins/enforcer/DefaultEnforcementRuleHelper.ja va?view=markup
This is how the plugins also get interpolated values. From: Stephen Connolly [mailto:[email protected]] Sent: Thursday, January 22, 2009 9:56 AM To: [email protected]; Maven Developers List Subject: [mojo-dev] What is the preferred API call to effect ${foo} substitution in an arbitrary string. I'm working on a mojo that needs to filter property and maven model property-equivalents (i.e. ${project.parent.groupId}). What is the preferred way to get these values? My current theory is that I should use http://maven.apache.org/ref/current/maven-project/xref/org/apache/maven/ project/interpolation/RegexBasedModelInterpolator.html But I'm somewhat unsure... and given that that refers to a Model, and not an arbitrary string.... -Stephen
