6.1.1. Configuration Directory
The configuration directory is intended for resources that complement and override application properties, user interface and business logic after the application is deployed. Overriding is provided by the loading mechanism of the Resources infrastructure interface. Firstly it performs search in the configuration directory and then in CLASSPATH, so that resources from the configuration directory take precedence over identically named resources located in JAR files and class directories.
The configuration directory may contain the following resource types:
local.app.properties – a file that defines deployment parameters of the server-based application blocks.
XML-descriptors of UI screens.
Controllers of UI screens in the form of Java or Groovy source code.
Groovy scripts or classes, and Java source code that is used by the application via the Scripting interface.
The location of the configuration directory is determined by the cuba.confDir application property. For the Middleware, Web Client and Web Portal blocks in fast deployment configuration in Tomcat, it is a subdirectory with the web application name in the
tomcat/conf directory, for example,
tomcat/conf/app-core for the Middleware.