Override the WebContent

JGAS installation files are generally subject to change with upgrades. If you need to keep a consistent version of the WebContent directory, then you can override it when deploying a war file. The override option is explained.

It is not recommended to modify the WebContent directory provided in the installation but instead you can override it with one provided by you when building a war file.

This allows you to keep the WebContent directory as part of your project and avoid modifying the original installation or risk losing your modifications after a JGAS product upgrade.

The following command to build a war shows an example using the --web-content option to specify the override:
fglgar war --input-gar myApp.gar --output myApp.war  --web-content <myWebContent_directory>
When building the war file, the WebContent directory provided in the installation is first copied. Then it is overwritten with the WebContent directory provided on the command line.