This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: Using environment variables in CatalogManager.Properties?
- From: Jeff Beal <jeff dot beal at ansys dot com>
- To: 'Steinar Bang' <sb at dod dot no>, docbook-apps at lists dot oasis-open dot org
- Date: Tue, 04 Feb 2003 09:16:06 -0500
- Subject: RE: DOCBOOK-APPS: Using environment variables in CatalogManager.Properties?
The short answer is "no". For reasons including security and
platform-portability (Macintosh computers prior to OS X did not have
environment variables, as I understand), the Java platfom does not support
reading environment variables. However, the JRE has a mechanism for passing
these properties over the command line, but I'm not totally sure whether
they work the same way as the .properties file. I've been meaning to try it
out, just haven't found the time yet. I think that if you run
java -DCatalogManager.catalogs=$HOME/cvs/xml/catalog.xml ...
the JRE will use this property assignment rather than what's in the
CatalogManager.properties file. Since the OS is doing the environment
variable substitution, there aren't any issues on the Java end.
Again, I'm really just guessing on this. I haven't hunted through the Java
documentation to see how the entire property mechanism works, but I think
this will work. The naming scheme may be different, though.
Jeff
-----Original Message-----
From: Steinar Bang [mailto:sb@dod.no]
Sent: Monday, February 03, 2003 4:56 PM
To: docbook-apps@lists.oasis-open.org
Subject: DOCBOOK-APPS: Using environment variables in
CatalogManager.Properties?
Is there some way to use environment variables in the catalogs
properties of a CatalogManager.Properties file?
Ie. something like this:
catalogs=$HOME/cvs/xml/catalog.xml
?
Thanx!
- Steinar