File | Settings | Compiler
IntelliJ IDEA | Preferences | Compiler
Use this page to configure common and specific options for compilers used in IntelliJ IDEA:
|Resource Patterns||In this field, specify the regular expression that describes the files that should be
recognized as resources and, consequently, copied to the output directory.
Use semicolons (;) to separate individual patterns.
Wildcards and negations are welcome. The following symbols are accepted:
The examples below illustrate the use of wildcards in the resource patterns:
If you want to skip compilation of certain Groovy files in the modules with the Groovy support, include them in the list of the resource patterns.
|Clear output directory on rebuild||Check this option to delete all files in the output directories. Do not check this option, if the output directory contains files IntelliJ IDEA is not aware of, like resources, etc. If there is any intersection of source and output paths, you will be prompted to resolve the issue by separating source and output directories, or ignore the issue.|
|Add @NotNull assertions||If this option is checked, the @NotNull assertions are added at run-time.|
|Automatically show first error in editor||If this check box is selected, the file that contains the very first compilation error will be opened in the editor, with the highlighted line that contains the error.|
|12.0+Use external build||If this check box is selected, compilation is launched as an external process. After compilation completes,
the process terminates.
With this option enabled, the following options become available:
|Compiler process heap size||The heap size available to the process that launches the compiler. If you are compiling a particularly large or complex project, you may get out-of-memory errors and be required to increase the amount of memory allocated to the compiler.|
|Additional compiler VM options||Specify the VM options to be passed to the compiler.|