Configuring Compiler Settings
This section describes how to access the compiler settings, modify the list of recognized resources, exclude certain paths from compilation, select the desired compiler, and configure annotation processing.
To configure compiler settings
- Open the Settings dialog box.
On the Compiler page, under Build, Execution, Deployment,
configure common settings, for example:
- In the Resource patterns field, update the regular expression
that describes the 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.
- In the Resource patterns field, update the regular expression that describes the extensions of the files to be recognized as resources. Separate individual patterns with semicolons (
On the Excludes page, specify the files and folders that must be excluded from compilation.
Click , and choose the desired directory from the Select Path dialog box.
Note the following:
- 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 a 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 in the output directory, you can exclude such files from compilation.
- Select a specific compiler. For example, on the Java Compiler page, select the desired compiler from the Use compiler drop-down list and specfify the compiler-specific settings.
- In the Annotation Processors page, configure the annotation processing parameters.
- Apply the changes and close the dialog.
- Define the paths, providing the proper order of module roots and libraries, as described in the Configuring Module Dependencies section.