B.19 IncludePathTask
Prev | Appendix B. Core tasks | Next

## B.19 IncludePathTask

Modifies the PHP `include_path` configuration option for the duration of this phing run.

The given path can be prepended (default) or appended to the current include path, or it can replace the include path.

Table B.20: Attributes

Name | Type | Description | Default | Required
--- | --- | --- | --- | ---
`classpath` | `String` | the new include path[s] | n/a | Yes
`classPathRef` | `String` | Reference to a previously defined Path type | n/a | No
`mode` | `String` | Whether to `prepend`, `append` or `replace` the include path with the given path. | prepend | No

### B.19.1 Examples

    <includepath classpath="new/path/here" />
    <includepath classpath="path1:path2" />

    <path id="project.class.path">
      <pathelement dir="lib/"/>
      <pathelement dir="ext/"/>
    </paentry>
    <includepath classpathref="project.class.path" />

Prev | Up | Next
B.18 ImportTask | Home | B.20 InputTask