IntelliJ IDEA 11.0 Web Help

9.0+

File | Settings | Compiler

Ctrl+Alt+SMeta Comma

settings

IntelliJ IDEA | Preferences | Compiler

Ctrl+Alt+SMeta Comma

settings

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

Item Description
Resource Patterns In this text box, specify the regular expression that describes extensions of the files to be recognized as resources and copied to the output directory. Separate multiple patterns with semicolons (;).

Tip

Wildcards and negations are welcome. The following symbols are accepted:

  • * stands for an unlimited number of any symbols, possibly none.
  • ? stands for exactly one not empty symbol.
  • . stands for a delimiter.
  • ! indicates a negation of the entire mask it is applied to. Accordingly, any file with the name and extension that DO NOT MATCH the pattern, will be recognized as resource.
  • / stands for 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 resource patterns:

  • *.xml - any XML file is recognized as resource.
  • !*.xml - any XML file is not recognized as resource.
  • -*.properties;-*.gif;-*.png;-*.jpeg;-*.xml - any properties, gif, jpeg, png, or xml file with the name beginning with - is recognized as resource.
  • MyResources:* - all files and folders under the directory MyResources

Note

  • If you want to skip compilation of certain Groovy files in the modules with Groovy support, include them to the list of resource patterns.

The following is available only in the Ultimate edition of IntelliJ IDEA

  • For the projects that contain modules with Flex support, the list of resource patterns includes also the file types *.js;?*.css;?*.swf.
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.
Compile in background Check this option to perform compilation in the background and keep working in the other views. If this option is not checked, you still can switch to background mode at every compilation. To do that, in the Compile Progress window click Background. If compilation is time-consuming, you will see the Productivity Hints.
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.

See Also

Concepts:

Procedures:

Web Resources: