Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 1.1.0
Fetching contributors…

Cannot retrieve contributors at this time

file 78 lines (59 sloc) 1.787 kb

phing-task

A collection of Phing Tasks.

Installation

Composer:

{
    "require": {
        "heartsentwined/phing-task": "1.*"
    }
}

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/heartsentwined/phing-task/src/task" />
        <taskdef name="classmap" classname="ClassmapTask" />
        <classmap dir="foo/library" output="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/heartsentwined/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/heartsentwined/phing-task/src/task" />
        <taskdef name="rrmdir" classname="RrmdirTask" />
        <rrmdir file="foo/src" />
    </target>
</project>
Something went wrong with that request. Please try again.