Re: What is the preferred API call to effect ${foo} substitution in an arbitrary string.

2009-01-23 Thread Stephen Connolly
2009/1/23 Nord, James > > > > > > Now a second question is this > > > > > > if I have a pluginManagement section in the parent pom that > > specifies > > > a version of the plugin using a property *that is defined with > > > different values in both the parent and child projects*, and the > >

RE: What is the preferred API call to effect ${foo} substitution in an arbitrary string.

2009-01-23 Thread Nord, James
> > > > Now a second question is this > > > > if I have a pluginManagement section in the parent pom that > specifies > > a version of the plugin using a property *that is defined with > > different values in both the parent and child projects*, and the > > parent and child are not in the s

Re: What is the preferred API call to effect ${foo} substitution in an arbitrary string.

2009-01-22 Thread Stephen Connolly
aven.apache.org/enforcer/enforcer-rules/requireProperty.html > > > -Original Message- > From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] > Sent: Thursday, January 22, 2009 1:58 PM > To: Maven Developers List > Subject: Re: What is the preferred API call to

RE: What is the preferred API call to effect ${foo} substitution in an arbitrary string.

2009-01-22 Thread Brian E. Fox
y 22, 2009 1:58 PM To: Maven Developers List Subject: Re: What is the preferred API call to effect ${foo} substitution in an arbitrary string. Well would it help if I pointed out that these are snippets of the pom.xml file (or it's parents)... specifically, they're the tags from definit

Re: What is the preferred API call to effect ${foo} substitution in an arbitrary string.

2009-01-22 Thread Stephen Connolly
2009/1/22 Stephen Connolly : > Well would it help if I pointed out that these are snippets of the > pom.xml file (or it's parents)... specifically, they're the > tags from definitions! > > (It's the versions-maven-plugin) and I'm trying to ensure that > ${plugin.version.install} evaluates correct

Re: What is the preferred API call to effect ${foo} substitution in an arbitrary string.

2009-01-22 Thread Stephen Connolly
Well would it help if I pointed out that these are snippets of the pom.xml file (or it's parents)... specifically, they're the tags from definitions! (It's the versions-maven-plugin) and I'm trying to ensure that ${plugin.version.install} evaluates correctly... of course somebody might have forc

Re: What is the preferred API call to effect ${foo} substitution in an arbitrary string.

2009-01-22 Thread Brett Porter
You're probably better getting the PluginParameterExpressionEvaluator component and using that (it's not the same as the interpolator in the POM unfortunately, but probably what you are looking for and more accessible). On 22/01/2009, at 6:55 AM, Stephen Connolly wrote: I'm working on a m

What is the preferred API call to effect ${foo} substitution in an arbitrary string.

2009-01-22 Thread Stephen Connolly
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/interpo