IntelliJ IDEA 2017.2 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.

ItemDescription
Path to GWT installation
directory
In this drop-down list, select the location of the GWT SDK. If necessary, click browseButton and select the necessary location in the dialog that opens.
Target Web FacetIn this drop-down 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 styleIn this drop-down 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 sizeIn 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)

GWTCompilerElement.png

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

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

When specifying the 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 the spaces in double quotes, for example, some" "arg or "some arg".
  • If an option includes double quotes (e.g. as part of the argument), escape the double quotes by means of the backslashes, for example, -Dmy.prop=\"quoted_value\".
Compiler parametersIn 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 ModuleThis read-only list shows all the GWT modules in your project. To have a GWT module involved in the make process, select the check box 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 PathIn this text box, specify the output path relative to the GWT modules compile output root.
Download GWTClick this button to download the GWT SDK.
Create ArtifactTo 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: 29 November 2017

See Also

Procedures: