The Lucy front-ends, TLcyMain
or MapCentricFrontendMain
, use their own configuration file:
-
config/lucy/lucy.cfg
in case ofTLcyMain
-
samples/frontend/mapcentric/map_centric_frontend.cfg
in case ofMapCentricFrontendMain
There are two options to override certain values from those configuration files.
-
Specify them as program argument to the
main
method.This mechanism is used in How to customize the add-ons used by your application to override the value of the
addons
property -
Create a custom configuration file and pass that as argument to the main method using the
properties
option.-
If you run
TLcyMain.main
orMapCentricFrontendMain.main
directly, you must specify this program argument:-properties path/to/custom_frontend_config.xml
-
If you have your own
main
method that calls the main method inTLcyMain
:TLcyMain.main(new String[]{"-properties", "path/to/custom_frontend_config.xml"});
or the main method in
MapCentricFrontendMain
:MapCentricFrontendMain.main(new String[]{"-properties", "path/to/custom_frontend_config.xml"});
-
If you run the
Lucy.bat
orLucy.sh
file:Lucy.bat -properties path/to/custom_frontend_config.xml
This also works for
LucyMapCentric.bat
andLucyMapCentric.sh
.It is recommended not to modify the configuration file directly. Instead, create a new file and use the
includeConfig
option to include the original file, exactly as you would do when customizing the configuration file of an add-on.
-