Enabling Phing Support
At the project level, you can enable Phing in the following ways:
- Explicitly through the project settings, on the Phing page of the Settings dialog box.
-
When adding a file to the list of Phing build files.
A correct Phing build file is an
xml
file with the root element<project>
. - On the fly, when you attempt to run a build from the editor or from the project tool window.
On this page:
- Before You Start
- Enabling Phing support through the project settings
- Enabling Phing support from the Phing Build tool window
- Enabling Phing on the fly, when attempting to run a build file
Before You Start
- Make sure Phing is downloaded and set up on your computer. If you are using an AMP, the package may already contain Phing.
- Install and enable the Phing Support plugin. The plugin is not bundled with IntelliJ IDEA, but it can be installed from the JetBrains plugin repository as described in Installing, Updating and Uninstalling Repository Plugins and Enabling and Disabling Plugins.
Enabling Phing support through the project settings
- Open the Settings / Preferences Dialog by choosing for Windows and Linux or for OS X. Expand the Languages&Frameworks node, and then click Phing under PHP.
-
In the Phing page that opens, specify the location of the file
phing.bat
in the Path to Phing executable text box. Type the path manually or click the Browse button and choose the file location in the dialog box that opens.
Enabling Phing support from the Phing Build tool window
- Open a Phing build file in the editor or select it in the Project tool window.
- 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 Settings
button on the toolbar.
The button is only available if the list of build files is not empty.
-
In the Phing Settings dialog box, that opens, specify the location of the
phing.bat
executable file.
Enabling Phing on the fly, when attempting to run a build file
- Open an Phing build file in the editor.
- On the context menu of the editor, choose Run Build File.
-
In the Phing Build tool window, that opens, click the Settings
button on the toolbar.
The button is only available if the list of build files is not empty.
-
In the Phing Settings dialog box, that opens, specify the location of the
phing.bat
executable file.
See Also
Procedures:
Reference:
Last modified: 13 July 2016