Marcin Gurbisz wrote on Tuesday, April 27, 2004 11:42 AM:

> Mabey it would be done. But for now I use same hack in maven.xml on
> main project level and it works for subprojects:
>     <preGoal name="build:start">
>         <attainGoal name="loadMasterProperties"/>
>     </preGoal>
> 
>     <goal name="loadMasterProperties">
>         <echo message="loading master properties"/>
>         <property file="${basedir}/../project.properties"/>    
> </goal> 

I'll do the same, but it has some severe limitations:
- you cannot define maven.repo.remote, since it is evaluated before any goal is run
- you cannot use substitutions in your "global" property file, e.g. following fails, 
although the echo task suggest it with a "proper" output of the property:

project.properties:
ci.root=../..

global.properties:
maven.xdoc.jsl=${ci.root}/site.jsl

See also comments accoring this in Geronimo's build files.

Regards,
J�rg

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

Reply via email to