heartsentwined / phing-task
A collection of Phing Tasks.
v2.1.2
2016-07-06 12:23 UTC
Requires
- php: >=5.3.3
- yalesov/file-system-manager: 2.*
- zendframework/zend-file: 2.*
Requires (Dev)
README
A collection of Phing Tasks.
Installation
{ "require": { "yalesov/phing-task": "2.*" } }
Phing is not bundled with this package.
You can install it through Composer and use the CLI at vendor/bin/phing
:
{ "require": { "phing/phing": "*" } }
or through PEAR and use the CLI at phing
:
$ pear channel-discover pear.phing.info $ pear install [--alldeps] phing/phing
Usage
ClassmapTask
Generate a classmap for the directory foo/library
(and its subdirectories), save it at foo/autoload_classmap.php
.
<project> <target> <includepath classpath="vendor/yalesov/phing-task/src/task" /> <taskdef name="classmap" classname="ClassmapTask" /> <classmap dir="foo/library" output="foo/autoload_classmap.php" /> </target> </project>
ClassmapClearTask
Clear the classmap file foo/autoload_classmap.php
, i.e. set it to return array();
.
<project> <target> <includepath classpath="vendor/yalesov/phing-task/src/task" /> <taskdef name="classmap-clear" classname="ClassmapClearTask" /> <classmap-clear file="foo/autoload_classmap.php" /> </target> </project>
RchownTask
Recursively chown the directory foo/src
, along with all its subdirectories and files, to the user foouser
and group foogroup
.
<project> <target> <includepath classpath="vendor/yalesov/phing-task/src/task" /> <taskdef name="rchown" classname="RchownTask" /> <rchown file="foo/src" user="foouser.foogroup" /> </target> </project>
Rrmdir
Recursively rmdir the directory foo/src
, along with all its subdirectories and files.
<project> <target> <includepath classpath="vendor/yalesov/phing-task/src/task" /> <taskdef name="rrmdir" classname="RrmdirTask" /> <rrmdir file="foo/src" /> </target> </project>