IntelliJ IDEA 2018.2 Help

Compiler Options tab

Use this tab to manage the compiler options for the build configuration as well as the associated project and module defaults.

See the descriptions of the compiler options in Flex documentation:

Item

Description

Option

The option name or the name of a group of options. The groups of options are shown as nodes which you can expand or collapse.

Note that each option has an associated Restore Default Value context menu command. Use this command to restore the module default for an option.

Also note that you can quickly find an option of interest among the options that are currently shown. Click somewhere within the area where the compiler options and their values are shown and start typing the text which, as you expect, is present within the option name. The Search for box appears which contains the text that you are typing. As soon as it's possible to identify an option basing on the text that you have typed, this option is highlighted in the table.

Value

The option value. In most of the cases, to start editing a value, you should click the corresponding table cell.

Generally, the way to edit a value depends on which value the corresponding option may have:

  • The options that you can turn on or off are controlled by checkboxes. The actual option values in such cases are true or false.

  • If an option value is a string, the value is edited right in the field.

  • If a value represents a path to a certain location (for example, a path to a file), you can edit such a value right in the field. Alternatively, you can use browseButton (Shift+Enter) to select the necessary location in the corresponding dialog.

  • If an option value represents a list, such a value cannot be edited directly. To edit the value, use icons general expandComponent svg (Shift+Enter). This will open a dedicated dialog for managing the list items.

Legend

The options whose values are inherited from the default sets of different levels (the IDE, project, or module) and the ones having specific values (that is, whose values are redefined at the level of the build configuration) are shown differently.

The legend shows how to distinguish between these four categories of options.

Copy resource files to output folder

For Applications: select this checkbox if you want resource files to be copied to the output folder. Specify which files within the module source roots should be treated as the resource files:
  • All except *.as and *.mxml. All the files with the extensions other than .as and .mxml are considered to be the resource files.

  • According to resource patterns. The files that match the resource patterns are treated as the resource files.

    Click the resource patterns link to view or edit the resource patterns. (The settings in the dialog that opens correspond to those on the Compiler page in the Settings dialog.)

Files and folders excluded from compilation won't be copied to the output folder. See Excludes.

Files to include in output *.swc

For Libraries: if necessary, specify additional files and folders that should be included in the resulting .swc file.

Click icons general expandComponent svg (Shift+Enter). In the Files And Folders To Include In *.swc dialog that opens:

  • To add a file or folder to the list, click icons general add svg (Alt+Insert) and select the necessary file or folder in the dialog that opens.

  • To replace a file or folder which is already in the list with a different file or folder, click the corresponding entry, click browseButton (Shift+Enter), and select the file or folder in the dialog that opens.

  • To remove items from the list, select the items to be removed and click icons general remove svg (Alt+Delete).

Please note the following:

  • For the source files (.as, .mxml and .fxg) to be included, all such files should be selected individually, as separate files. That is, if you select a folder, none of the .as, .mxml and .fxg files contained therein will be included in the .swc file.

  • Files and folders excluded from compilation won't be included in the .swc file. See Excludes.

Additional compiler configuration file

You have an option of specifying a compiler configuration file, an XML file that contains the compiler settings that are used in addition to those specified in the table.

The additional compiler configuration file, usually, is a file that you compose yourself. Alternatively, this may be a file generated by means of the Maven plugin, or the like.

You can find examples of the configuration files in the directory <Flex_SDK_directory>\frameworks.

Note that in the case of contradictions, the settings in the configuration file take precedence over the ones specified in the table.

To specify the configuration file, click browseButton (Shift+Enter) and select the necessary file in the dialog that opens.

Inherited options

In this field, the compiler options inherited from upper levels (module and project) are shown (readonly).

Additional compiler options

If necessary, specify the compiler options to be used in addition to those in the table and in the additional compiler configuration file.

When specifying the options, you can use path variables. These include the predefined variables ${MODULE_DIR}, ${PROJECT_DIR} and ${USER_HOME}, and also the ones set on the Path Variables page of the Settings dialog. The format to be used is:

-some-option=${PATH_VARIABLE_NAME}/relative/path

For example:

-dump-config=${MY_PATH_VARIABLE}/config_dump.xml

To separate individual options, use spaces.

If you need more room to type, click icons general expandComponent svg (Shift+Enter) to open the Additional Compiler Options dialog where the text entry area is larger.

Project Defaults

Click this button to edit the project defaults in the Default Compiler Options For Project dialog.

Module Defaults

Click this button to edit the module defaults in the Default Compiler Options For Module dialog.

Last modified: 20 November 2018

See Also