Chapter 4 Getting started

Phing buildfiles are written in XML, and so you will need to know at least some basic things about XML to understand the following chapter. There is a lot of information available on the web:

4.1 XML And Phing

A valid Phing buildfile has the following basic structure:

  • The document prolog

  • Exactly one root element called <project> .

  • Several Phing type elements (i.e. <property> , <fileset> , <patternset> etc.)

  • One or more <target> elements containing built-in or user defined Phing task elements (i.e. <install> , <bcc> , etc).