Yeah, I got that, but will it be interpolated... at present by using MXpp3 I can get the raw model.
project.getOriginalModel() gives a kind-of interpolated without property evaluation project.getModel() gives the final values. For 3.x will there be a route to all three or are we losing the middle ground? I know I have a need for interpolated pre-property substituion as well as the final model... and I also have a need for the raw model... For example to differentiate between plugins inherited with versions specified in the pom, plugins inherited with versions coming from inheritance, etc. -Stephen 2009/3/16 Jason van Zyl <[email protected]> > > On 16-Mar-09, at 12:47 PM, Stephen Connolly wrote: > > I have code which does what I need, so if enforcer is doing similar then >> I'm >> happy >> >> -Stephen >> >> BTW, how does this change in 3.x? >> > > When you ask for the model it won't be mutated. > > > >> 2009/3/16 Jason van Zyl <[email protected]> >> >> Brian had to do this in the enforcer so there is code for 2.x there. >>> >>> In 3.x the model original model hierarchy is not mutated and stored along >>> with the project. >>> >>> >>> On 16-Mar-09, at 10:26 AM, Stephen Connolly wrote: >>> >>> Hey! >>> >>>> >>>> So either my memory is wrong or i remember somebody saying it's a "bad >>>> thing"(TM) to use MavenXpp3Reader from a plugin.... >>>> >>>> I know that 99% of the time one should use model builder directly, but I >>>> have a use case where I just want the results before *any* interpolation >>>> what so ever is performed... >>>> >>>> Am I still doing a "bad thing" or is this the 1% i suspect it is? >>>> >>>> -Stephen >>>> >>>> >>> Thanks, >>> >>> Jason >>> >>> ---------------------------------------------------------- >>> Jason van Zyl >>> Founder, Apache Maven >>> http://twitter.com/jvanzyl >>> ---------------------------------------------------------- >>> >>> To do two things at once is to do neither. >>> >>> -—Publilius Syrus, Roman slave, first century B.C. >>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >>> > Thanks, > > Jason > > ---------------------------------------------------------- > Jason van Zyl > Founder, Apache Maven > http://twitter.com/jvanzyl > ---------------------------------------------------------- > > the course of true love never did run smooth ... > > -- Shakespeare > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
