B.50 TypedefTask

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

Table B.53: Attributes

NameTypeDescriptionDefaultRequired
classnameStringThe path to the class that defines the type class.n/aYes
nameStringThe name the type is available as after importing. If you specify "cproject", for example, you can access the type imported here with <cproject>.n/aYes
classpathStringThe classpath to use when including classes. This is added to PHP's include_path.n/aNo
classpathrefStringReference to classpath to use when including classes. This is added to PHP's include_path.n/aNo

B.50.1 Examples

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

B.50.2 Supported Nested Tags