IntelliJ IDEA 14.0.0 Web Help

GWT Facet Page

File | Project Structure | Modules - module - GWT facetCtrl+Shift+Alt+S projectStructure

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

Item Description
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 Facet In 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 style In 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 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)

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 options In 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 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 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 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.

See Also

Procedures:

Web Resources:

Last modified: 4 December 2014
comments powered by Disqus