A collection of Phing Tasks.
{
"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
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>
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>
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>
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>