HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

phing — A PHP build tool based on Apache Ant. More information: <https://www.phing.info/guide/chunkhtml/ch03

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandbuildphingcliapachephptoolbased

Problem

How to use the phing command: A PHP build tool based on Apache Ant. More information: <https://www.phing.info/guide/chunkhtml/ch03s03.html>.

Solution

phing — A PHP build tool based on Apache Ant. More information: <https://www.phing.info/guide/chunkhtml/ch03s03.html>.

Perform the default task in the build.xml file:
phing


Initialize a new build file:
phing {{[-i|--init]}} {{path/to/build.xml}}


Perform a specific task:
phing {{task_name}}


Use the given build file path:
phing {{[-f|-buildfile]}} {{path/to/build.xml}} {{task_name}}


Log to the given file:
phing -logfile {{path/to/log_file}} {{task_name}}


Use custom properties in the build:
phing -D{{property}}={{value}} {{task_name}}


Specify a custom listener class:
phing -listener {{class_name}} {{task_name}}


Build using verbose output:
phing -verbose {{task_name}}

Code Snippets

Perform the default task in the `build.xml` file

phing

Initialize a new build file

phing {{[-i|--init]}} {{path/to/build.xml}}

Perform a specific task

phing {{task_name}}

Use the given build file path

phing {{[-f|-buildfile]}} {{path/to/build.xml}} {{task_name}}

Log to the given file

phing -logfile {{path/to/log_file}} {{task_name}}

Context

tldr-pages: common/phing

Revisions (0)

No revisions yet.