B.36 TypedefTask
Prev | Appendix B. Core tasks | Next

## B.36 TypedefTask

With the `TypedefTask` you can import a user type into your buildfile.

Table B.39: Attributes

Name | Type | Description | Default | Required
--- | --- | --- | --- | ---
`classname` | `String` | The path to the class that defines the type class. | n/a | Yes
`name` | `String` | The name the type is available as after importing. If you specify "cproject", for example, you can access the type imported here with `<cproject>`. | n/a | Yes
`classpath` | `String` | The classpath to use when including classes. This is added to PHP's include_path. | n/a | No
`classpathref` | `String` | Reference to classpath to use when including classes. This is added to PHP's include_path. | n/a | No

### B.36.1 Examples

    <!--
    Includes the Type named "CustomProject" and makes it available by
    <cproject>
    -->
    <typedef classname="user.types.CustomProject" name="cproject" />

### B.36.2 Supported Nested Tags

- `classpath`

Prev | Up | Next
B.35 TstampTask | Home | B.37 UpToDateTask