All expressions should be proceed by Maven. FYI Maven uses plexus-interpolation inside. At glance:
RegexBasedInterpolator interpolator = new RegexBasedInterpolator(); interpolator.addValueSource( new PropertiesBasedValueSource( System.getProperties() ) ); interpolator.interpolate( myString ); HTH Vincent 2010/11/23 Costin Caraivan <[email protected]>: > > Hello, > > Is there a simple way to evaluate expressions in a custom Maven 2 plugin? > The plugin I'm writing now tries to parse some string which may contain > Maven 2 expressions, and I'd like to use Maven 2's mechanisms for > filtering/interpolating/replacing these properties. I've looked a bit > through the source code of the maven-help-plugin, especially help:evaluate, > but it doesn't seem too straightforward. > > So, is there a simple solution to evaluate expressions in a Maven 2 plugin? > Dynamic expressions, not static ones like @parameter > expression="${something}". > > Thanks :) > -- > View this message in context: > http://maven.40175.n5.nabble.com/Evaluate-expressions-in-a-plugin-tp3276728p3276728.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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
