April 2016
Intermediate to advanced
290 pages
5h 51m
English
To automate the build process, we are going to use Apache Ant. Ant looks for a build.xml file in the root of the Symfony project, parses the contents, and based on what it finds, starts to run the PHP tools that we installed earlier.
So, in the root of your project, create the build.xml file with the following content (you can grab this file from the project's GitHub repository, https://github.com/Soolan/mava-project):
<?xml version="1.0" encoding="UTF-8"?> <project name="Mava" default="build"> <property name="workspace" value="${basedir}" /> <property name="sourcedir" value="${basedir}/src" /> <property name="builddir" value="${workspace}/app/build" /> <target name="build" depends="prepare,vendors,parameters,lint,phploc,pdepend,phpcpd,phpmd-ci,phpcs-ci,phpdoc,phpunit,phpcb"/> ...Read now
Unlock full access