From: "Michael McKibben" <[EMAIL PROTECTED]> > Is it possible to have the Maven projects executed by the reactor inherit > the parent context so that top-level build properties and variables are > available to sub projects? Perhaps this could be enabled/disabled with a > boolean attribute such as 'inherit'?
This parent/child relationship between contexts is already supported in Jelly. Its also supported by the MavneJellyContext. To create a child context for example is... MavenJellyContext parent = ...; MavenJellyContext child = new MavenJellyContext(parent); > It is a real pain to port my current ant builds over to maven without this > feature. E.g. I have to dynamically create a jelly script containing the > current vars, then copy to the subproject dir, then eval the generated > jelly script in my sub project!! This workaround doesn't work perfectly > since this happens after project.xml evaluation and any properties > referenced in the project.xml do not get expanded. I'm sure we can fix this to avoid this workaround. > I could submit a patch if this sounds like a good idea. It seems simple > enough... add a constructor to Maven() to take a parent Maven instance, > modify Maven.initializeJellyContext to check for a parent and tweak the > ReactorTag to pass in the parent when creating a new Maven instance. Sounds cool. James ------- http://radio.weblogs.com/0112098/ __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
