On Tue, 2004-06-15 at 01:37, Vincent Massol wrote:
> Hi,
> 
> Looking at Maven source it seems to me that any property defined in a
> project's build.properties would override that same property defined in
> the user.home build.properties (and that seems logical to me). However
> this is not happening.

The ~/build.properties has always had the final say and overrides
anything defined in any of the other properties files. The relevant
snippet of code is:

Map result = MavenUtils.mergeMaps( new Map[]
        {
            systemProperties,
            userBuildProperties,
            projectBuildProperties,
            projectProperties,
            driverProperties
        } );


Order of precedence is from the top of the list to the bottom. This has
always been the way the properties have worked.

> 
> Is that a wanted behavior?
> 
> Thanks
> -Vincent
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
jvz.

Jason van Zyl
[EMAIL PROTECTED]
http://maven.apache.org

happiness is like a butterfly: the more you chase it, the more it will
elude you, but if you turn your attention to other things, it will come
and sit softly on your shoulder ...

 -- Thoreau 


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

Reply via email to