The Lucy front-ends, TLcyMain or MapCentricFrontendMain, use their own configuration file:
-
config/lucy/lucy.cfgin case ofTLcyMain -
samples/frontend/mapcentric/map_centric_frontend.cfgin case ofMapCentricFrontendMain
There are two options to override certain values from those configuration files.
-
Specify them as program argument to the
mainmethod.This mechanism is used in How to customize the add-ons used by your application to override the value of the
addonsproperty -
Create a custom configuration file and pass that as argument to the main method using the
propertiesoption.-
If you run
TLcyMain.mainorMapCentricFrontendMain.maindirectly, you must specify this program argument:-properties path/to/custom_frontend_config.xml -
If you have your own
mainmethod 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.batorLucy.shfile:Lucy.bat -properties path/to/custom_frontend_config.xmlThis also works for
LucyMapCentric.batandLucyMapCentric.sh.It is recommended not to modify the configuration file directly. Instead, create a new file and use the
includeConfigoption to include the original file, exactly as you would do when customizing the configuration file of an add-on.
-