IntelliJ IDEA 13.1.0 Web Help

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.

To set 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.
To set 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

Concepts:

Web Resources: