IntelliJ IDEA 14.0.0 Web Help

Managing Phing Build Targets

Phing functionality in IntelliJ IDEA is provided through a dedicated Phing Build tool window.

In this section:

Accessing the Phing Build tool window

  • Open a Phing build file in the editor or select it in the Project tool window, and then choose Add as Phing build file on the context menu of the selection.
  • Choose View | Tool Windows | Phing Build on the main menu. The tool window can be accessed after you have opened it through the context menu of a Phing build file in the editor or in the Project tool window.

Examining the build targets defined in a build file

  • Open the Phing Build tool window. The window shows all the build files as nodes.
  • To view the build targets defined in a specific build file, expand the corresponding node by clicking plus_expand.png next to the build file name. Note that this expanding does not affect the targets marked as hidden.
  • To fold or unfold the build targets defined in all build files, click respectively the Expand All button expandAll.png or the Collapse All button collapseAll.png on the toolbar. Note, that unfolding does not affect the targets marked as hidden.
  • To navigate to the definition of a target in the source code, select the desired target and choose Jump to Source on the context menu of the selection.

Hiding targets

  • To mark one or several build targets as hidden, do one of the following:
    • In the Phing Build tool window, select the targets under their build file node and choose Mark to Hide on the context menu of the selection.
    • Select the build file in which they are defined and click the Settings button properties.gif on the toolbar. Then in the Phing Settings dialog box that opens, switch to the Hiding targets tab and select the Hide check boxes next to the targets to be hidden.
  • To remove the hidden status of a target:
    1. Select the build file in which it is defined and click the Settings button properties.gif on the toolbar.
    2. In the Phing Settings dialog box that opens, switch to the Hiding targets tab where the Hide check boxes next to the names of the hidden targets are selected. Clear the Hide check boxes next to the targets for which you want the status hidden removed.

Associating a shortcut with a Phing target

  1. In the Phing Build tool window, right-click the desired build target.
  2. On the context menu, choose Assign Shortcut .
  3. In the Keymap dialog box that opens, configure the shortcut as described in Configuring Keyboard Shortcuts.

Appointing targets for execution before running or debugging

  1. Open the Phing Build tool window.
  2. Select the desired target and choose Before Run/Debug on the context menu of the selection.
  3. In the Execute Target Before Run/Debug dialog box that opens, select the configurations before which you want the target executed.

See Also

Last modified: 4 December 2014
comments powered by Disqus