Right, there are BEEHIVE_HOME dependencies in the build files specifically so that those build files can hard-reference the /beehive.properties file.
The 2build refactoring that Bob did was to get rid of the need for a BEEHIVE_HOME environment variable at all and move to a set of common paths / variables that are setup by /build-common.xml.
Then, the hard BEEHIVE_HOME references aren't needed any longer, though every build file needs to import /build-common.xml with a relative path.
Take a look at Bob's 2build work; I think that will answer your questions about how to fix this. ;)
Eddie
Xibin Zeng wrote:
Hi -
I changed the beehive.properties under the svn source tree
[Before] beehive.dir={os.BEEHIVE_HOME} [After] beehive.dir=D:/Development/Beehive
(The environment setting for BEEHIVE_HOME is D:/downloads/apachexxxx-snapshot)
The build breaks, since build files in sub project directories use {os.BEEHIVE_HOME}/beehive.properties, which points to the distribution's beehive.properties. It seems there are still dependencies to BEEHIVE_HOME in build files.
Maybe I missed a step somewhere?
I see a few ways to fix it: 1. The root level build.xml passes the properties down to called sub build files. 2. Have sub buld files refer to beehive.properties relatively. I think that introduces dependencies to directory structures; also nasty for deep nested dirs. 3. Read from BEEHIVE_DEV_HOME. ;-))
Thanks Xibin
-----Original Message-----
From: Xibin Zeng Sent: Friday, December 10, 2004 9:56 AM
To: Beehive Developers
Subject: RE: [vote] replace BEEHIVE_HOME with BEEHIVE_DEV_HOME
Thanks Bob.
Sorry for being unfamiliar with the 2build refactoring that you did. I did notice beehive.properties has a beehive.dir defined (be default it is set to the environment setting). If a developer changes the setting there, will the build/tests work? I will try it out now ...
Xibin
-----Original Message-----
From: Bob McWhirter [mailto:[EMAIL PROTECTED] Sent: Friday, December 10, 2004 7:20 AM
To: Beehive Developers
Subject: Re: [vote] replace BEEHIVE_HOME with BEEHIVE_DEV_HOME
Just a note that the 2build build refactoring I did removes
the need for BEEHIVE_HOME, at least for developers.
Perhaps we should revisit it?
-bob
Eddie O'Neil wrote:
Yeah, I agree with this; thanks for bringing it up.
The BEEHIVE_HOME environment variable should be used by Beehive *users* and the distribution.
