Execute Ant target
With IntelliJ IDEA you can run the build targets, review results of compilation and build, and navigate to the point of origin of each error.
Build targets can be executed from:
The main Build menu that contains the list of all targets defined in the build files, added to a project.
In the Ant tool window, select the desired target.
Do one of the following:
From the context menu of the selected target, choose Run target (or Run build, if you execute the entire build file).
Click the
button on the toolbar of the Ant tool window.
Double-click the selected target.
On the main menu, click Build.
Click the submenu that corresponds to the desired build file.
Select the desired build target.
In both cases, results are displayed in the Messages tool window:

Thanks for your feedback!