Quantcast
Channel: Oracle Bloggers
Viewing all articles
Browse latest Browse all 19780

Phing support added

$
0
0

Hi all, today we will show you our support for PHP project build system or build tool which has been added in NetBeans 8.1. This time, we will talk about Phing.

This support works exactly the same way as the existing support for JavaScript build tool, Grunt (please note that for NetBeans 8.1, we have added another popular JavaScript build tool, Gulp). This starts with configuration of Phing executable, of course:

Phing executable configuration

Now, we can create a new Phing build file if it does not exist in the PHP project yet: 

Phing build.xml template

Phing build file appears among Important Files of the project:

build.xml is Important File

Phing targets can be assigned to common IDE actions in the Project Properties dialog so then, if one e.g. Runs Project, the relevant Phing target is automatically executed as well.

Project Properties of Phing

Any Phing target defined in project's build.xml can be run via project's context menu. One can even specify an advanced task:

Advanced Phing target

Advanced task can be configured with custom options and parameters. Moreover, more Phing targets can be run at once and every advanced task can be optionally stored in VCS so every team member can use it easily:

Advanced Phing target configuration

NetBeans remembers a few of the latest advanced tasks and allows to rerun them easily. Ordinary Phing targets can be run directly as well, of course:

Stored advanced Phing target

Output of every Phing target run can be easily found (and reviewed if needed) in the Output window: 

Phing output

That's all for today, as always, please test it and report all the issues or enhancements you find in NetBeans Bugzilla (component php, subcomponent Phing). You can also leave a comment here (please notice that the comments are moderated so they will not appear here immediately) but reporting issues is strongly preferred.


Viewing all articles
Browse latest Browse all 19780

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>