Configure triggers for Ant build target
You can configure triggers that run Ant targets before or after certain events, for example, compiling, running, or testing. These triggers are called compilation trigger and execution trigger respectively.
Setting up a compilation trigger
On the Ant tool window, right-click the desired build target.
On the context menu of the target, choose
.On the submenu, choose
or , as required. Note that you can set up both options.
Setting up an execution trigger
On the Ant Build tool window, right-click the desired build target.
On the context menu of the target, choose
.On the submenu, choose Before Run/Debug. Execute Target Before Run/Debug dialog appears, presenting the list of possible execution types.
In the dialog, select checkboxes next to the types of execution that should trigger the selected Ant target, and click OK.
Last modified: 26 August 2021