IntelliJ IDEA 14.1.0 Help


File | Settings | Build, Execution, Deployment | Compiler

Use this node to configure common and specific options for compilers used in IntelliJ IDEA:

Common Options

Resource PatternsIn 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:

  • * represents an unlimited number of any symbols, possibly none.
  • ? represents exactly one symbol.
  • . represents a delimiter.
  • ! negates the entire mask it is applied to. Consequently, any file with the name and extension that do not match the pattern will be recognized as a resource file.
  • / represents a path separator.
  • /**/ denotes any number of directories.
  • <dir>:<pattern> denotes any directory located under the source root <dir>; <pattern> is any pattern that meets the above-mentioned requirements.

The examples below illustrate the use of wildcards in the resource patterns:

  • *.xml - any XML file.
  • !*.xml - any file whose extension is not .xml.
  • z*.properties;z*.gif;z*.png;z*.jpeg;z*.xml - any .properties, .gif, .png, .jpeg, or .xml file with the name beginning with z.
  • MyResources:* - all files and folders within the directory MyResources.
Clear output directory on rebuildCheck 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 assertionsIf this option is checked, the @NotNull assertions are added at run-time.
Automatically show first error in editorIf 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.
Make project automaticallySelect this check box to automatically make (compile) the project each time project files change on your disk, for example, on save or autosave, or when you get the latest project revision from your version control system.
Compile independent modules in parallelIf this check box is selected, the modules without mutual dependencies are compiled simultaneously. This might require increased heap size.
Compiler process heap sizeThe 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.
Rebuild modules on dependency changeSelect this check box to have the modules with the changed dependencies rebuilt.
Build process heap size (Mbytes) In the text field, specify the heap size required for the build process.

Note that if you are using a 64-bit JDK for compilation, the build process may require more memory.

Additional build process VM optionsSpecify the VM options to be passed to the compiler.

See Also

Last modified: 14 July 2015