IntelliJ IDEA 2021.1 Help

Define Ant filters

By default, the Ant build tool window shows all targets of a build file. Filtering enables you to show or hide targets as desired. The default filter displays the primary targets only. You can change this behavior and configure your own filter with custom set of targets that should be visible when the filter is applied.

Configuring custom filter for build targets

  1. Open the Build File Properties dialog.

  2. In the Filters tab, clear the checkboxes next to the build targets you want to hide, and select the checkboxes next to the targets you want to show.

    Now, when you apply filter by pressing the filter button The Filter button, only the targets selected in the Filters list will be displayed.

Last modified: 08 March 2021