Thanks Aaron. I dug through the code a bit and found that it's actually set for the first time while one of the servlet context listeners runs. I also read through common.Constants and confirmed what I had hoped was the case about the precedence.
Then I checked the install doc and noticed you had updated it a couple days ago, so thanks for that. It describes the precedence exactly the way I understand it: The fedora.home servlet context parameter: If defined, will be used by the running Fedora webapp. The installer automatically populates this if the user is running Tomcat. Otherwise, if desired, people need to define it themselves as appropriate for their servlet container. The fedora.home system property: If defined, will be used by the running Fedora webapp if no "fedora.home" servlet context parameter has been defined. The FEDORA_HOME environment variable: If defined, will be used by the running Fedora webapp if the fedora.home system property is undefined and no "fedora.home" servlet context parameter has been defined. Must be defined in order to run Fedora client and server scripts (e.g. fedora-rebuild) Thanks, Chris On Tue, Jul 26, 2011 at 10:42 AM, Aaron Birkland <birkl...@cs.cornell.edu> wrote: > (the stupid CS department exchange server is blacklisted from sourceforge > again, so Chris: you may be the only one to get this message as I am ccing > you directly) > > On Tue, 2011-07-26 at 10:20 -0400, Chris Wilper wrote: >> I was verifying https://jira.duraspace.org/browse/FCREPO-984 and it >> occurred to me that I don't know what we should be telling people >> about the FEDORA_HOME environment variable anymore. > > I updated some of the documentation re: environment variables a couple > days ago, so here was my attempt: > https://wiki.duraspace.org/x/yACcAQ#InstallationandConfiguration-PrepareEnvironmentVariables > >> So is FEDORA_HOME only really important to the server and client >> scripts (stuff in server/bin and client/bin)? > > Right, and when performing system tests where you want to specify a > particular fedora instance to run against. > > Technically, FEDORA_HOME is heeded by the server only if the fedora.home > context param has not been set, as a fallback (same with fedora.home > system property). > >> And how is the value of org.fcrepo.common.Constants.FEDORA_HOME >> populated when the Fedora webapp starts? > > You know, I'm not sure :) > > -Aaron > > > ------------------------------------------------------------------------------ Magic Quadrant for Content-Aware Data Loss Prevention Research study explores the data loss prevention market. Includes in-depth analysis on the changes within the DLP market, and the criteria used to evaluate the strengths and weaknesses of these DLP solutions. http://www.accelacomm.com/jaw/sfnl/114/51385063/ _______________________________________________ Fedora-commons-developers mailing list Fedora-commons-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers