IntelliJ IDEA 2020.1 Help

GWT facet page

File | Project Structure | Modules | <module> | GWT
File | Project Structure | Facets | GWT (<module>)

Use this page to configure the individual settings of a GWT facet attached to a particular module.



Path to GWT installation

In this list, select the location of the GWT SDK. If necessary, click the Browse button and select the necessary location in the dialog that opens.

Target Web Facet

In this list, select where GWT components should be ascribed.

The available options are:

  • None: the generated files will not be ascribed to any web facet.

  • Web: the generated files will be ascribed to a war/exploded directory.

    This option is available only if the GWT application is placed in a Web module with a Web facet.

JavaScript output style

In this list, select the optimization style that the compiler will apply to the generated JavaScript code. The following options are available:
  • Obfuscated. Choose this option to get the output smaller and thus faster to load.

    The function names in the output JavaScript code are unpredictable.

  • Pretty. Choose this option to get the output readable to a human.

  • Detailed. Choose this option to get the output with even more detail, for example, verbose variable names.

Compiler maximum heap size

In this text box, specify maximum heap size in Mb that will be used by the GWT compiler.

In order to have GWT Compiler launched, you need to add GWT Compiler Output element to the artifact. (Project Structure | Artifacts | Output Layout)


Thus GWT Compiler is launched on artifact build, and the generated files are stored in the artifact's output directory.

Additional compiler VM options

In this text box, specify additional VM options, for example, the ones for compiling and running large GWT projects.

When specifying JVM options, follow these rules:

  • Use spaces to separate individual options, for example, -client -ea -Xmx1024m.

  • If an option includes spaces, enclose the spaces or the argument that contains spaces in double quotes, for example, some" "arg or "some arg".

  • If an option includes double quotes (as part of the argument), escape the double quotes using backslashes, for example, -Dmy.prop=\"quoted_value\".

  • You can pass environment variable values to custom Java properties. For example, if you define a variable MY_ENV_VAR, you can pass it to the foo property as follows:


Compiler parameters

In this text box, specify the options to be passed to the GWT compiler process in the format of a command line.

Use the same rules as for specifying the VM options.

GWT Module

This read-only list shows all the GWT modules in your project. To have a GWT module involved in the build process, select the checkbox next to the name of the module in the list.

The make process is automatic re-compilation of all the module or project sources that have been changed since the last compilation.

Output Relative Path

In this text box, specify the output path relative to the GWT modules compile output root.

Download GWT

Click this button to download the GWT SDK.

Create Artifact

To launch GWT compiler, you need to have an artifact configured with GWT Compiler output element added in the Output Layout tab. Click this button to automatically create an artifact with configured output layout.

Last modified: 25 May 2020