- Open the Project Settings.
- In the Compiler page, configure common settings, for example:
- In the Resource patterns field, update the regular expression that describes extensions of the files to be recognized as resources. Separate individual patterns with semicolons (;). Refer to the list of wildcard characters, and examples.
- If necessary, choose to perform compilation as an external process.
- On the Excludes page, specify the files and folders that should be excluded from compilation.
Click
, and choose the desired directory from the Select Path dialog box.
Note
- If an excluded path is a dependency of the source code being compiled, this path will be included in compilation and processed by the compiler as required.
- If some file contains errors and fails to compile, but it is not important for the current project state, or if you want to skip some files and not include them into the output directory, you can exclude such files from compilation.
- Select the specific compiler. For example, in the Java Compiler page,
select the desired compiler from the Use compiler drop-down list.
Specify compiler-specific settings. - In the Annotation Processors page, configure annotation processing parameters.
- Apply changes and close the dialog.
- Define the paths, providing the proper order of module roots and libraries, as described in the section Configuring Module Dependencies.

