[Geoserver-devel] [jira] Created: (GEOS-1883) GeoServer should pick up environment variables

GeoServer should pick up environment variables
----------------------------------------------

                 Key: GEOS-1883
                 URL: http://jira.codehaus.org/browse/GEOS-1883
             Project: GeoServer
          Issue Type: Improvement
    Affects Versions: 1.6.3
            Reporter: Arne Kepp
            Assignee: Arne Kepp
             Fix For: 1.7.0

GeoServer currently does not pick up regular (BASH, DOS) environment variables for GEOSERVER_DATA_DIR. This can be solved by using System.getenv()

Since it is tedious to edit web.xml files for people running multiple GeoServer instances we should also proposed a GEOSERVER_DATA_ROOT variable, which points to a directory containing several configurations. The name / path of the instance will determine which directory is used, so
http://localhost:8080/geoserver1 will result in %GEOSERVER_DATA_ROOT%/geoserver1 being used as the data directory.

Precedence is as follows
1) GEOSERVER_DATA_DIR in web.xml
2.A) GEOSERVER_DATA_DIR Java environment variable
2.B) GEOSERVER_DATA_DIR system environment variable
3.A) GEOSERVER_DATA_ROOT system environment variable
3.B) GEOSERVER_DATA_ROOT Java environment variable

This ensures that the configuration still works like in previous versions, for those that do not adopt the new variable.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira