2018-11-29 15:00:57 +00:00
|
|
|
# phing
|
|
|
|
|
|
|
|
> A PHP build tool based on Apache Ant.
|
2025-04-22 06:20:48 +03:00
|
|
|
> More information: <https://www.phing.info/guide/chunkhtml/ch03s03.html>.
|
2018-11-29 15:00:57 +00:00
|
|
|
|
2021-01-31 14:05:18 -03:00
|
|
|
- Perform the default task in the `build.xml` file:
|
2018-11-29 15:00:57 +00:00
|
|
|
|
|
|
|
`phing`
|
|
|
|
|
2022-06-27 12:23:12 +02:00
|
|
|
- Initialize a new build file:
|
2018-11-29 15:00:57 +00:00
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`phing {{[-i|--init]}} {{path/to/build.xml}}`
|
2018-11-29 15:00:57 +00:00
|
|
|
|
|
|
|
- Perform a specific task:
|
|
|
|
|
|
|
|
`phing {{task_name}}`
|
|
|
|
|
2024-02-09 10:55:36 -03:00
|
|
|
- Use the given build file path:
|
2018-11-29 15:00:57 +00:00
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`phing {{[-f|-buildfile]}} {{path/to/build.xml}} {{task_name}}`
|
2018-11-29 15:00:57 +00:00
|
|
|
|
2024-02-09 10:55:36 -03:00
|
|
|
- Log to the given file:
|
2018-11-29 15:00:57 +00:00
|
|
|
|
2024-02-09 10:55:36 -03:00
|
|
|
`phing -logfile {{path/to/log_file}} {{task_name}}`
|
2018-11-29 15:00:57 +00:00
|
|
|
|
2024-01-24 04:22:18 -03:00
|
|
|
- Use custom properties in the build:
|
2018-11-29 15:00:57 +00:00
|
|
|
|
|
|
|
`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}}`
|