Packaging war files

Using the fglgar tool to build a Java Web Archive (war) file allows you to deploy applications that are ready to run.

The fglgar tool run with the war command creates a war file that embeds a Genero Java GAS (JGAS) and the Genero Archive file (gar). The JGAS allows you to run applications and services bundled in your gar file as standalone. This means that you can package applications for deployment and testing without the need to install an additional GAS package on the server side.
Note: The standalone JGAS is for development and testing only, a Java Enterprise Edition (Java EE) server is required for a production environment.
A typical fglgar war command is shown:
fglgar war -g MyApp.gar --gbc c:/dev/gbc_custom -o ../MyGeneroJavaApps.war
The example uses three of the command's main options:
  • The --input-gar (-g ) option is mandatory. It allows you to specify the Genero Archive you want to use to create the war file. This means that you need to have a gar file already created to include in the war file. See Deploying applications on GAS.
  • The --gbc option is optional but it allows you specify a different Genero Browser Client (GBC), for example, one that you have customized specifically for your applications. Otherwise, the default gbc installed with the FGLGWS package is embedded in the war file.
  • The --output or -o option specifies the relative or absolute path to the war file to generate.