Michael McKibben <[EMAIL PROTECTED]> wrote on 08/10/2002 12:23:16 AM:

> 
> 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'?

At the moment, as you've noticed, there's no inheritance or parent context 
set up for executed projects. This does need to change.

> 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.

Yep, it does suck...

> 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 like the best option so far.

> Regards,
> 
> --mike

Thanks again for your willingness to contribute.
--
dIon Gillard, Multitask Consulting
Work:      http://www.multitask.com.au
Developers: http://adslgateway.multitask.com.au/developers




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to