msggen

Cúram message files allow a Cúram application to be localized without needing manipulation of hand-crafted code. These files should be used in preference to hard-coded strings within hand-crafted code.

Message files are located in the /message directory of a component. The Social Program Management Platform is shipped with a set of message files. These files may be overridden by placing new message files in the SERVER_DIR/components/<custom > directory, where <custom> is any new directory created under components that conforms to the same directory structure as components/core. The override process involves merging all message files of the same name according to a precedence order where the order is based on the SERVER_COMPONENT_ORDER environment variable. This variable lists the components in a delimited list in order of priority from most to least important.

The msggen build target performs the merge of message files and then translates the resultant merged message file (which is stored in /build/svr/message/scp directory) into Java source code and property files so it can be accessed at runtime.

The generated Java code is then compiled and packed into /build/jar/messages.jar.