At the IntelliJ IDEA level, Phing integration is supported via the Phing bundled plugin. The plugin is by default enabled. If not, enable it in the Plugin Configuration Wizard or the Plugins page of the Settings dialog box.
-
Open an Phing build file in the editor or select it in the Project tool window.
Tip
A correct Phing build file is an xml file with the root element <project>.
- On the context menu of the editor or the selection, choose Add as Phing build file.
-
In the Phing Build tool window, that opens, click the Properties button
on the toolbar.
Note
The button is only available if the list of build files is not empty.
- In the Phing Properties dialog box, that opens, specify the location of the phing.bat file.
After that the Phing Build tool window is available from the menu within the scope of the current project.
- If Phing support is not enabled in the project, 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..
- If Phing is supported at the project level, choose on the main menu.
- Open the Phing Build tool window.
-
To add a build file to the list, click the Add button
on the toolbar
and choose the required .xml build file in the Select Phing Build File dialog box, that opens.
Note
-
Build files are created outside the Phing Build tool window.
Find more about writing Phing build files in Getting Started
.
- Normally, Phing build files are stored under your PHP project root folder.
-
Build files are created outside the Phing Build tool window.
Find more about writing Phing build files in Getting Started
-
To remove a build file from the list, select the file and click the Remove button
on the toolbar.
- To navigate to the source code of a build file, select the desired file and choose Jump to Source on the context menu of the selection.
- Open the Phing Build tool window.
- To view the build targets defined in a specific build file, expand the corresponding build file node.
-
To have build targets defined in all build files displayed or hidden,
click the Expand All
or Collapse All
toolbar buttons respectively.
- 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.
- Open the Phing Build tool window.
-
Select the required build file in the list and click the Run button
on the toolbar
or choose Run Build on the context menu of the selection.
- Open the Phing Build tool window.
-
Select the required build target in the list and click the Run button
on the toolbar
or choose Run Target on the context menu of the selection.
- Open the Phing Build tool window.
- Select the desired target and choose Before Run/Debug on the context menu of the selection.
- In the Execute Target Before Run/Debug dialog box that opens, select the configurations before which you want the target executed.
