<preGoal name="build:start">
<attainGoal name="loadMasterProperties"/>
</preGoal>
<goal name="loadMasterProperties">
<echo message="loading master properties"/>
<property file="${basedir}/../project.properties"/>
</goal>Michael Mattox wrote:
This might work with multiproject (I haven't verified this) but if you do a build for a subproject itself it does't work. Maybe this is a bug or an oversight, but I think this is really necessary. Currently there is no properties inheritence and I believe the build.properties in a user's home should only be used to override the defaults. It shouldn't be mandatory for the build.
-----Message d'origine----- De : Arto Pastinen [mailto:[EMAIL PROTECTED] Envoy� : mardi 27 avril 2004 10:27 � : Maven Users List Objet : Re: build.properties & project.xml inheritence
I just make some test where i put properties in "master" project.properties, and called it with maven multiproject plugin, and there subproject's got those properties.
On Tue, 2004-04-27 at 11:03, Michael Mattox wrote:
I set up a master project.xml and my subprojects extend it.This is working
great. The problem is if I want to define properties inbuild.properties
and have them shared by the entire hierachy of projects. For example, Ibuild.properties. How can I
define the webserver IP address in my "master"
get this to be inherited by all my subprojects? So far theonly way I see
is to define a build.properties in my user home directory. Theproblem with
this is I want this file to be stored in CVS. The build won'twork without
it. Please let me know if there is a way to do this.you should also
The solution, I think, is that when you extend a project.xml
inherit its build.properties. That way there is a "master"build.properties
for the project, and it's stored in CVS with the project.
Regards, Michael Mattox
-- This E-mail is confidential. It may also be legally privileged. If you are not the addressee you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return E-mail. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- ___________________________________ Marcin Gurbisz Programista PentaComp Systemy Informatyczne Sp. z o.o. tel. (22) 639 32 32 do 35, fax (22) 639 32 31 tel.kom. 0 606 818 300 *www.pentacomp.pl* <http://www.pentacomp.pl/> <http://www.pentacomp.pl/>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
