IntelliJ IDEA 2016.3 Help

Configuring 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

  1. On the Ant Build Tool Window, right-click the desired build target.
  2. On the context menu of the target, choose Execute on.
  3. On the submenu, choose Before Compilation or After Compilation, as required. Note that you can set up both options.

Setting up an execution trigger

  1. On the Ant Build tool window, right-click the desired build target.
  2. On the context menu of the target, choose Execute on.
  3. On the submenu, choose Before Run/Debug. Execute Target Before Run/Debug dialog appears, presenting the list of possible execution types.
  4. In the dialog, select check boxes next to the types of execution that should trigger the selected Ant target, and click OK.

See Also

Last modified: 21 March 2017