On Thu, Apr 1, 2010 at 5:58 PM, Richard Rodseth <[email protected]> wrote:
> <definesDeclaration>
>  <property><name>BUILD::buildNumber</name><value>${bamboo.buildNumber}</value></property>
>  <property><name>CONFIG::emulated</name><value>false</value></property>
> </definesDeclaration>
>
> In the child POM I wish to set CONFIG::emulated to true. But it
> appears that I have to set the other property as well - i.e. the
> <definesDeclaration> tag replaces rather than appends. Am I correct,
> and if so is there another way to just override one compiler property?

I haven't peeked at this part of the source for a while, but I'm
pretty sure that is correct, that it replaces the entire definition,
so you must always declare all of the properties. I believe this is
consistent with how other configuration is handled in maven, once you
specify something different from the default, you have to define the
default as well if you still want it (for example, adding source
directories or resource directories).

You could certainly request that the properties get "merged" with the
parent, but that's extra code, and I'm not sure if that's always the
desirable behavior.

Logan

-- 
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos

http://flexmojos.sonatype.org/

Reply via email to