Create meta target
IntelliJ IDEA lets you create a meta target for your Ant build file. A meta target can contain several different targets of your choosing. Those targets will be executed in the specified order. In this case, you don't need to change the Ant build script itself.
You can treat your meta target as a regular Ant target and assign shortcuts to it, configure triggers for running the target, etc.
Creating a Meta Target
In the Ant build tool window, press Ctrl and simultaneously click the desired Ant targets to mark them as selected.
Right-click one of the targets to open a context menu.
- From the context menu, select Create Meta Target.
(If you need to remove the created meta target, select Remove Meta Target .)
In the Create Meta Target dialog, check the order of your targets and the name of your meta target. If you need, you can edit the specified information accordingly. Click OK.