Phing execution on the command line is simple. Just change to the directory where your buildfile resides and type
$ phing [target [target2 [target3] ...]]
at the command line (where [target...] are the target(s)
you want to be executed). If no target is specified Phing
will try to execute the default target, as specified in the
project
tag. When calling multipe targets, Phing
will invoke each target independently of the other targets.
Optionally, you may specify command line arguments as listed in Appendix
A.
For example, the following command line calls the default buildscript
build.xml
using the default target with the property
ftp.upload
set to true.
$ phing -Dftp.upload=true